pub struct DiagonalMap<T> {
pub top_left: T,
pub top_right: T,
pub bottom_left: T,
pub bottom_right: T,
}
Fields§
§top_left: T
§top_right: T
§bottom_left: T
§bottom_right: T
Trait Implementations§
Source§impl<T: Clone> Clone for DiagonalMap<T>
impl<T: Clone> Clone for DiagonalMap<T>
Source§fn clone(&self) -> DiagonalMap<T>
fn clone(&self) -> DiagonalMap<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for DiagonalMap<T>
impl<T: Debug> Debug for DiagonalMap<T>
Source§impl<T: Default> Default for DiagonalMap<T>
impl<T: Default> Default for DiagonalMap<T>
Source§fn default() -> DiagonalMap<T>
fn default() -> DiagonalMap<T>
Returns the “default value” for a type. Read more
Source§impl<T: Hash> Hash for DiagonalMap<T>
impl<T: Hash> Hash for DiagonalMap<T>
Source§impl<T> Index<Diagonal> for DiagonalMap<T>
impl<T> Index<Diagonal> for DiagonalMap<T>
Source§impl<T> IndexMut<Diagonal> for DiagonalMap<T>
impl<T> IndexMut<Diagonal> for DiagonalMap<T>
Source§impl<T: Ord> Ord for DiagonalMap<T>
impl<T: Ord> Ord for DiagonalMap<T>
Source§fn cmp(&self, other: &DiagonalMap<T>) -> Ordering
fn cmp(&self, other: &DiagonalMap<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for DiagonalMap<T>
impl<T: PartialEq> PartialEq for DiagonalMap<T>
Source§impl<T: PartialOrd> PartialOrd for DiagonalMap<T>
impl<T: PartialOrd> PartialOrd for DiagonalMap<T>
impl<T: Copy> Copy for DiagonalMap<T>
impl<T: Eq> Eq for DiagonalMap<T>
impl<T> StructuralPartialEq for DiagonalMap<T>
Auto Trait Implementations§
impl<T> Freeze for DiagonalMap<T>where
T: Freeze,
impl<T> RefUnwindSafe for DiagonalMap<T>where
T: RefUnwindSafe,
impl<T> Send for DiagonalMap<T>where
T: Send,
impl<T> Sync for DiagonalMap<T>where
T: Sync,
impl<T> Unpin for DiagonalMap<T>where
T: Unpin,
impl<T> UnwindSafe for DiagonalMap<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