pub enum Expected<K: TokenKind> {
Single(K),
Set(&'static [K]),
Dynamic(Vec<K>),
Multiple(Vec<Expected<K>>),
}Expand description
Expected token description.
Variants§
Single(K)
One explicit token kind.
Set(&'static [K])
Static set of acceptable kinds.
Dynamic(Vec<K>)
Dynamic set computed at runtime.
Multiple(Vec<Expected<K>>)
Multiple alternatives that were all tried and failed.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Expected<K>where
K: Freeze,
impl<K> RefUnwindSafe for Expected<K>where
K: RefUnwindSafe,
impl<K> Send for Expected<K>
impl<K> Sync for Expected<K>
impl<K> Unpin for Expected<K>where
K: Unpin,
impl<K> UnwindSafe for Expected<K>where
K: UnwindSafe + RefUnwindSafe,
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