pub struct DirecMap<T> {
pub up: T,
pub left: T,
pub down: T,
pub right: T,
}
Expand description
A mapping from all directions to the given data.
Fields§
§up: T
Data associated with Direction::Up
.
left: T
Data associated with Direction::Left
.
down: T
Data associated with Direction::Down
.
right: T
Data associated with Direction::Right
.
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for DirecMap<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for DirecMap<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq> PartialEq<DirecMap<T>> for DirecMap<T>
impl<T: PartialEq> PartialEq<DirecMap<T>> for DirecMap<T>
impl<T: Copy> Copy for DirecMap<T>
impl<T: Eq> Eq for DirecMap<T>
impl<T> StructuralEq for DirecMap<T>
impl<T> StructuralPartialEq for DirecMap<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DirecMap<T>where T: RefUnwindSafe,
impl<T> Send for DirecMap<T>where T: Send,
impl<T> Sync for DirecMap<T>where T: Sync,
impl<T> Unpin for DirecMap<T>where T: Unpin,
impl<T> UnwindSafe for DirecMap<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