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