Enum cirru_parser::CirruLexItem
source · pub enum CirruLexItem {
Open,
Close,
Indent(u8),
Str(String),
}
Expand description
internal control item during lexing
Variants§
Trait Implementations§
source§impl Clone for CirruLexItem
impl Clone for CirruLexItem
source§fn clone(&self) -> CirruLexItem
fn clone(&self) -> CirruLexItem
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 CirruLexItem
impl Debug for CirruLexItem
source§impl From<&str> for CirruLexItem
impl From<&str> for CirruLexItem
source§impl From<u8> for CirruLexItem
impl From<u8> for CirruLexItem
source§impl Ord for CirruLexItem
impl Ord for CirruLexItem
source§fn cmp(&self, other: &CirruLexItem) -> Ordering
fn cmp(&self, other: &CirruLexItem) -> Ordering
1.21.0 · 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 PartialEq for CirruLexItem
impl PartialEq for CirruLexItem
source§fn eq(&self, other: &CirruLexItem) -> bool
fn eq(&self, other: &CirruLexItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CirruLexItem
impl PartialOrd for CirruLexItem
source§fn partial_cmp(&self, other: &CirruLexItem) -> Option<Ordering>
fn partial_cmp(&self, other: &CirruLexItem) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CirruLexItem
impl StructuralPartialEq for CirruLexItem
Auto Trait Implementations§
impl RefUnwindSafe for CirruLexItem
impl Send for CirruLexItem
impl Sync for CirruLexItem
impl Unpin for CirruLexItem
impl UnwindSafe for CirruLexItem
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