pub struct Sides<T> { /* private fields */ }
Expand description
An association of a value with type T
to each of the four Side
s.
Implementations§
source§impl<T> Sides<T>where
T: Clone,
impl<T> Sides<T>where
T: Clone,
sourcepub fn uniform_cloned(value: T) -> Self
pub fn uniform_cloned(value: T) -> Self
Creates a new Sides
with value
associated with all sides.
The value will be cloned for each Side
.
If your value is Copy
, consider using Sides::uniform
instead.
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Sides<T>
impl<T: PartialEq> PartialEq for Sides<T>
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> 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