#[non_exhaustive]pub struct Borders {
pub top: usize,
pub bottom: usize,
pub left: usize,
pub right: usize,
pub front: usize,
pub behind: usize,
}Expand description
Border sizes for the padding and crop helpers.
The two-dimensional helpers take the four in-plane values directly; this struct carries the depth pair that a four-axis tensor also needs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.top: usizeRows added or removed at the top.
bottom: usizeRows added or removed at the bottom.
left: usizeColumns added or removed on the left.
right: usizeColumns added or removed on the right.
front: usizeSlices added or removed in front.
behind: usizeSlices added or removed behind.
Implementations§
Trait Implementations§
impl Copy for Borders
impl Eq for Borders
impl StructuralPartialEq for Borders
Auto Trait Implementations§
impl Freeze for Borders
impl RefUnwindSafe for Borders
impl Send for Borders
impl Sync for Borders
impl Unpin for Borders
impl UnsafeUnpin for Borders
impl UnwindSafe for Borders
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more