pub enum PlainTextToken {
Number,
EndOfSentence,
Comma,
NewLine,
Parentheses,
Text,
Error,
}
Variants§
Trait Implementations§
Source§impl Clone for PlainTextToken
impl Clone for PlainTextToken
Source§fn clone(&self) -> PlainTextToken
fn clone(&self) -> PlainTextToken
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlainTextToken
impl Debug for PlainTextToken
Source§impl<'s> Logos<'s> for PlainTextToken
impl<'s> Logos<'s> for PlainTextToken
Source§const SIZE: usize = 7usize
const SIZE: usize = 7usize
SIZE
is simply a number of possible variants of the Logos
enum. The
derive
macro will make sure that all variants don’t hold values larger
or equal to SIZE
. Read moreSource§type Extras = ()
type Extras = ()
Associated type
Extras
for the particular lexer. This can be set using
#[logos(extras = MyExtras)]
and accessed inside callbacks.Source§type Source = str
type Source = str
Source type this token can be lexed from. This will default to
str
,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8]
.Source§impl PartialEq for PlainTextToken
impl PartialEq for PlainTextToken
impl StructuralPartialEq for PlainTextToken
Auto Trait Implementations§
impl Freeze for PlainTextToken
impl RefUnwindSafe for PlainTextToken
impl Send for PlainTextToken
impl Sync for PlainTextToken
impl Unpin for PlainTextToken
impl UnwindSafe for PlainTextToken
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