pub enum TokenStructure<'a> {
Multiple,
Single(&'a Token<'a>),
None,
}Expand description
Represents the possible shapes of a vector of tokens. A vector of tokens could contain multiple tokens, a single token (a common special case), or none at all (a rare corner case).
Variants§
Auto Trait Implementations§
impl<'a> Freeze for TokenStructure<'a>
impl<'a> RefUnwindSafe for TokenStructure<'a>
impl<'a> Send for TokenStructure<'a>
impl<'a> Sync for TokenStructure<'a>
impl<'a> Unpin for TokenStructure<'a>
impl<'a> UnwindSafe for TokenStructure<'a>
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