[−][src]Struct direction::DirectionTable
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 DirectionIterpub fn directions(&self) -> DirectionIter
[src]
ⓘImportant traits for DirectionIter
pub fn enumerate(&self) -> DirectionTableEnumerate<T>
[src]
pub fn enumerate_mut(&mut self) -> DirectionTableEnumerateMut<T>
[src]
impl<T: Clone> DirectionTable<T>
[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(&self) -> 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]
fn partial_cmp(&self, other: &DirectionTable<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &DirectionTable<T>) -> bool
[src]
fn le(&self, other: &DirectionTable<T>) -> bool
[src]
fn gt(&self, other: &DirectionTable<T>) -> bool
[src]
fn ge(&self, other: &DirectionTable<T>) -> bool
[src]
impl<T: PartialEq> PartialEq<DirectionTable<T>> for DirectionTable<T>
[src]
fn eq(&self, other: &DirectionTable<T>) -> bool
[src]
fn ne(&self, other: &DirectionTable<T>) -> bool
[src]
impl<T: Default> Default for DirectionTable<T>
[src]
fn default() -> DirectionTable<T>
[src]
impl<T: Ord> Ord for DirectionTable<T>
[src]
fn cmp(&self, other: &DirectionTable<T>) -> Ordering
[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<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn index(&self, index: Direction) -> &Self::Output
[src]
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,
T: Send,
impl<T> Sync for DirectionTable<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,