pub struct Dirs<T> { /* private fields */ }Expand description
An association of a value with type T to each of the two Dirs.
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§
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> Freeze for Dirs<T>where
T: Freeze,
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