#[repr(C)]pub enum WordType {
Word = 0,
Tab = 1,
Return = 2,
Space = 3,
}
Expand description
Either a white-space delimited word, tab or return character
Variants§
Word = 0
Encountered a word (delimited by spaces)
Tab = 1
Return = 2
\r
, \n
or \r\n
, escaped: \x0D
, \x0A
or \x0D\x0A
Space = 3
Space character
Trait Implementations§
Source§impl Ord for WordType
impl Ord for WordType
Source§impl PartialOrd for WordType
impl PartialOrd for WordType
impl Copy for WordType
impl Eq for WordType
impl StructuralPartialEq for WordType
Auto Trait Implementations§
impl Freeze for WordType
impl RefUnwindSafe for WordType
impl Send for WordType
impl Sync for WordType
impl Unpin for WordType
impl UnwindSafe for WordType
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