Enum direction::CardinalDirection [−][src]
#[repr(u8)] pub enum CardinalDirection { North, East, South, West, }
Variants
Implementations
pub const fn all() -> CardinalDirectionIterⓘNotable traits for CardinalDirectionIterimpl Iterator for CardinalDirectionIter type Item = CardinalDirection;
Notable traits for CardinalDirectionIter
impl Iterator for CardinalDirectionIter type Item = CardinalDirection;
pub const fn all_directions() -> DirectionCardinalIterⓘNotable traits for DirectionCardinalIterimpl Iterator for DirectionCardinalIter type Item = Direction;
Notable traits for DirectionCardinalIter
impl Iterator for DirectionCardinalIter type Item = Direction;
Trait Implementations
Performs the conversion.
Performs the mutable indexing (container[index]
) operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CardinalDirection
impl Send for CardinalDirection
impl Sync for CardinalDirection
impl Unpin for CardinalDirection
impl UnwindSafe for CardinalDirection
Blanket Implementations
Mutably borrows from an owned value. Read more