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§
Source§impl Ord for CompassPt
impl Ord for CompassPt
Source§impl PartialOrd for CompassPt
impl PartialOrd for CompassPt
Source§impl<'a> TryFrom<Pair<'a, Rule>> for CompassPt
impl<'a> TryFrom<Pair<'a, Rule>> for CompassPt
Source§type Error = ParseError<'a>
type Error = ParseError<'a>
The type returned in the event of a conversion error.
impl Copy for CompassPt
impl Eq 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 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