Enum diskplan_schema::Token
source · pub enum Token<'t> {
Text(&'t str),
Variable(Identifier<'t>),
Special(Special),
}
Expand description
Part of an Expression
; a constant string, or a variable for later expansion to a string
Variants§
Text(&'t str)
A constant string of plain text
Variable(Identifier<'t>)
The name of a variable
Special(Special)
A special variable whose value is provided by the current scope
Trait Implementations§
source§impl<'t> Ord for Token<'t>
impl<'t> Ord for Token<'t>
source§impl<'t> PartialEq for Token<'t>
impl<'t> PartialEq for Token<'t>
source§impl<'t> PartialOrd for Token<'t>
impl<'t> PartialOrd for Token<'t>
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<'t> Eq for Token<'t>
impl<'t> StructuralEq for Token<'t>
impl<'t> StructuralPartialEq for Token<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for Token<'t>
impl<'t> Send for Token<'t>
impl<'t> Sync for Token<'t>
impl<'t> Unpin for Token<'t>
impl<'t> UnwindSafe for Token<'t>
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