pub enum CompassPt {
N,
NE,
E,
SE,
S,
SW,
W,
NW,
C,
Underscore,
}Expand description
An enum that corresponds to the compass_pt non-terminal of the grammar.
Variants§
N
A North orientation
NE
A North-East orientation
E
An East orientation
SE
A South-East orientation
S
A South orientation
SW
A South-West orientation
W
A West orientation
NW
A North-West orientation
C
A Central orientation
Underscore
An unspecified orientation
Trait Implementations§
impl Copy for CompassPt
impl Eq for CompassPt
Source§impl Ord for CompassPt
impl Ord for CompassPt
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CompassPt
impl PartialOrd for CompassPt
impl StructuralPartialEq for CompassPt
Auto Trait Implementations§
impl Freeze for CompassPt
impl RefUnwindSafe for CompassPt
impl Send for CompassPt
impl Sync for CompassPt
impl Unpin for CompassPt
impl UnsafeUnpin for CompassPt
impl UnwindSafe for CompassPt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more