[][src]Struct direction::DirectionTable

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

Methods

impl<T> DirectionTable<T>[src]

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

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

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

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

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

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

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

Important traits for DirectionIter
pub fn directions(&self) -> DirectionIter[src]

pub fn enumerate(&self) -> DirectionTableEnumerate<T>[src]

pub fn enumerate_mut(&mut self) -> DirectionTableEnumerateMut<T>[src]

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

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

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

pub fn new_default() -> Self[src]

Trait Implementations

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

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

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

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Index<Direction> for DirectionTable<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<Direction> for DirectionTable<T>[src]

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

Auto Trait Implementations

impl<T> Send for DirectionTable<T> where
    T: Send

impl<T> Sync for DirectionTable<T> where
    T: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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