pub struct Sides<T> {
pub top: T,
pub bottom: T,
pub left: T,
pub right: T,
}
Expand description
A structure which represents 4 box sides.
Fields§
§top: T
Top side.
bottom: T
Bottom side.
left: T
Left side.
right: T
Right side.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Sides<T>
impl<T: Eq> Eq for Sides<T>
impl<T> StructuralPartialEq for Sides<T>
Auto Trait Implementations§
impl<T> Freeze for Sides<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sides<T>where
T: RefUnwindSafe,
impl<T> Send for Sides<T>where
T: Send,
impl<T> Sync for Sides<T>where
T: Sync,
impl<T> Unpin for Sides<T>where
T: Unpin,
impl<T> UnwindSafe for Sides<T>where
T: UnwindSafe,
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