Struct direction::CardinalDirectionTable[][src]

pub struct CardinalDirectionTable<T> { /* fields omitted */ }

Implementations

impl<T> CardinalDirectionTable<T>[src]

pub fn new_fn<F: FnMut(CardinalDirection) -> T>(f: F) -> Self[src]

pub const fn new_array(values: [T; 4]) -> Self[src]

pub fn set(&mut self, direction: CardinalDirection, value: T)[src]

pub fn get(&self, direction: CardinalDirection) -> &T[src]

pub fn get_mut(&mut self, direction: CardinalDirection) -> &mut T[src]

pub fn iter(&self) -> DirectionTableIter<'_, T>[src]

pub fn iter_mut(&mut self) -> DirectionTableIterMut<'_, T>[src]

pub fn directions(&self) -> CardinalDirectionIter[src]

pub fn enumerate(&self) -> CardinalDirectionTableEnumerate<'_, T>[src]

pub fn enumerate_mut(&mut self) -> CardinalDirectionTableEnumerateMut<'_, T>[src]

impl<T: Clone> CardinalDirectionTable<T>[src]

pub fn new_clone(value: T) -> Self[src]

impl<T: Default> CardinalDirectionTable<T>[src]

pub fn new_default() -> Self[src]

Trait Implementations

impl<T: Clone> Clone for CardinalDirectionTable<T>[src]

impl<T: Copy> Copy for CardinalDirectionTable<T>[src]

impl<T: Debug> Debug for CardinalDirectionTable<T>[src]

impl<T: Default> Default for CardinalDirectionTable<T>[src]

impl<T: Eq> Eq for CardinalDirectionTable<T>[src]

impl<T: Hash> Hash for CardinalDirectionTable<T>[src]

impl<T> Index<CardinalDirection> for CardinalDirectionTable<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<CardinalDirection> for CardinalDirectionTable<T>[src]

impl<T: Ord> Ord for CardinalDirectionTable<T>[src]

impl<T: PartialEq> PartialEq<CardinalDirectionTable<T>> for CardinalDirectionTable<T>[src]

impl<T: PartialOrd> PartialOrd<CardinalDirectionTable<T>> for CardinalDirectionTable<T>[src]

impl<T> StructuralEq for CardinalDirectionTable<T>[src]

impl<T> StructuralPartialEq for CardinalDirectionTable<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for CardinalDirectionTable<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for CardinalDirectionTable<T> where
    T: Send
[src]

impl<T> Sync for CardinalDirectionTable<T> where
    T: Sync
[src]

impl<T> Unpin for CardinalDirectionTable<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for CardinalDirectionTable<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.