Enum aglet::Direction9
source · [−]pub enum Direction9 {
NorthWest,
North,
NorthEast,
West,
Center,
East,
SouthWest,
South,
SouthEast,
}Expand description
Nine-way directions: 8 compass points plus center.
Variants
NorthWest
North
NorthEast
West
Center
East
SouthWest
South
SouthEast
Implementations
sourceimpl Direction9
impl Direction9
pub const DIRECTIONS: &'static [Direction9] = _
Trait Implementations
sourceimpl Clone for Direction9
impl Clone for Direction9
sourcefn clone(&self) -> Direction9
fn clone(&self) -> Direction9
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Direction9
impl Debug for Direction9
sourceimpl From<Direction8> for Direction9
impl From<Direction8> for Direction9
sourcefn from(dir: Direction8) -> Self
fn from(dir: Direction8) -> Self
Converts to this type from the input type.
sourceimpl Hash for Direction9
impl Hash for Direction9
sourceimpl Ord for Direction9
impl Ord for Direction9
sourceimpl PartialEq<Direction9> for Direction9
impl PartialEq<Direction9> for Direction9
sourceimpl PartialOrd<Direction9> for Direction9
impl PartialOrd<Direction9> for Direction9
sourcefn partial_cmp(&self, other: &Direction9) -> Option<Ordering>
fn partial_cmp(&self, other: &Direction9) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryFrom<Direction9> for Direction8
impl TryFrom<Direction9> for Direction8
impl Copy for Direction9
impl Eq for Direction9
impl StructuralEq for Direction9
impl StructuralPartialEq for Direction9
Auto Trait Implementations
impl RefUnwindSafe for Direction9
impl Send for Direction9
impl Sync for Direction9
impl Unpin for Direction9
impl UnwindSafe for Direction9
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more