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
sourceimpl<T: PartialEq> PartialEq<Sides<T>> for Sides<T>
impl<T: PartialEq> PartialEq<Sides<T>> for Sides<T>
impl<T: Copy> Copy for Sides<T>
impl<T: Eq> Eq for Sides<T>
impl<T> StructuralEq for Sides<T>
impl<T> StructuralPartialEq for Sides<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more