[−][src]Struct direction::OrdinalDirectionTable
Methods
impl<T> OrdinalDirectionTable<T>
[src]
impl<T> OrdinalDirectionTable<T>
pub fn new_fn<F: FnMut(OrdinalDirection) -> T>(f: F) -> Self | [src] |
pub const fn new_array(values: [T; 4]) -> Self | [src] |
pub fn set(&mut self, direction: OrdinalDirection, value: T) | [src] |
pub fn get(&self, direction: OrdinalDirection) -> &T | [src] |
pub fn get_mut(&mut self, direction: OrdinalDirection) -> &mut T | [src] |
pub fn iter(&self) -> DirectionTableIter<T> | [src] |
pub fn iter_mut(&mut self) -> DirectionTableIterMut<T> | [src] |
impl<T: Clone> OrdinalDirectionTable<T>
[src]
impl<T: Clone> OrdinalDirectionTable<T>
impl<T: Default> OrdinalDirectionTable<T>
[src]
impl<T: Default> OrdinalDirectionTable<T>
pub fn new_default() -> Self | [src] |
Trait Implementations
impl<T: Eq> Eq for OrdinalDirectionTable<T>
[src]
impl<T: Eq> Eq for OrdinalDirectionTable<T>
impl<T: PartialOrd> PartialOrd<OrdinalDirectionTable<T>> for OrdinalDirectionTable<T>
[src]
impl<T: PartialOrd> PartialOrd<OrdinalDirectionTable<T>> for OrdinalDirectionTable<T>
fn partial_cmp(&self, other: &OrdinalDirectionTable<T>) -> Option<Ordering> | [src] |
fn lt(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
fn le(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
fn gt(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
fn ge(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
impl<T: Copy> Copy for OrdinalDirectionTable<T>
[src]
impl<T: Copy> Copy for OrdinalDirectionTable<T>
impl<T: Default> Default for OrdinalDirectionTable<T>
[src]
impl<T: Default> Default for OrdinalDirectionTable<T>
fn default() -> OrdinalDirectionTable<T> | [src] |
impl<T: PartialEq> PartialEq<OrdinalDirectionTable<T>> for OrdinalDirectionTable<T>
[src]
impl<T: PartialEq> PartialEq<OrdinalDirectionTable<T>> for OrdinalDirectionTable<T>
fn eq(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
fn ne(&self, other: &OrdinalDirectionTable<T>) -> bool | [src] |
impl<T: Clone> Clone for OrdinalDirectionTable<T>
[src]
impl<T: Clone> Clone for OrdinalDirectionTable<T>
fn clone(&self) -> OrdinalDirectionTable<T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<T: Ord> Ord for OrdinalDirectionTable<T>
[src]
impl<T: Ord> Ord for OrdinalDirectionTable<T>
fn cmp(&self, other: &OrdinalDirectionTable<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: Debug> Debug for OrdinalDirectionTable<T>
[src]
impl<T: Debug> Debug for OrdinalDirectionTable<T>
impl<T: Hash> Hash for OrdinalDirectionTable<T>
[src]
impl<T: Hash> Hash for OrdinalDirectionTable<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> Index<OrdinalDirection> for OrdinalDirectionTable<T>
[src]
impl<T> Index<OrdinalDirection> for OrdinalDirectionTable<T>
type Output = T
The returned type after indexing.
fn index(&self, index: OrdinalDirection) -> &Self::Output | [src] |
impl<T> IndexMut<OrdinalDirection> for OrdinalDirectionTable<T>
[src]
impl<T> IndexMut<OrdinalDirection> for OrdinalDirectionTable<T>
fn index_mut(&mut self, index: OrdinalDirection) -> &mut Self::Output | [src] |
Auto Trait Implementations
impl<T> Send for OrdinalDirectionTable<T> where
T: Send,
impl<T> Send for OrdinalDirectionTable<T> where
T: Send,
impl<T> Sync for OrdinalDirectionTable<T> where
T: Sync,
impl<T> Sync for OrdinalDirectionTable<T> where
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
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]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
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]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |