pub enum WordKind<C> {
Simple(SimpleWordKind<C>),
DoubleQuoted(Vec<SimpleWordKind<C>>),
SingleQuoted(String),
}
Expand description
An indicator to the builder what kind of word was parsed.
Variants§
Simple(SimpleWordKind<C>)
A regular word.
DoubleQuoted(Vec<SimpleWordKind<C>>)
List of words concatenated within double quotes.
SingleQuoted(String)
List of words concatenated within single quotes. Virtually identical as a literal, but makes a distinction between the two.
Trait Implementations§
impl<C: Eq> Eq for WordKind<C>
impl<C> StructuralPartialEq for WordKind<C>
Auto Trait Implementations§
impl<C> Freeze for WordKind<C>
impl<C> RefUnwindSafe for WordKind<C>where
C: RefUnwindSafe,
impl<C> Send for WordKind<C>where
C: Send,
impl<C> Sync for WordKind<C>where
C: Sync,
impl<C> Unpin for WordKind<C>where
C: Unpin,
impl<C> UnwindSafe for WordKind<C>where
C: UnwindSafe,
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