pub enum Word<L, W> {
Simple(W),
DoubleQuoted(Vec<W>),
SingleQuoted(L),
}
Expand description
Represents whitespace delimited single, double, or non quoted text.
Generic over the representation of single-quoted literals, and non-quoted words.
Variants§
Simple(W)
A regular word.
DoubleQuoted(Vec<W>)
List of words concatenated within double quotes.
SingleQuoted(L)
List of words concatenated within single quotes. Virtually identical as a literal, but makes a distinction between the two.
Trait Implementations§
impl<L: Eq, W: Eq> Eq for Word<L, W>
impl<L, W> StructuralPartialEq for Word<L, W>
Auto Trait Implementations§
impl<L, W> Freeze for Word<L, W>
impl<L, W> RefUnwindSafe for Word<L, W>where
W: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, W> Send for Word<L, W>
impl<L, W> Sync for Word<L, W>
impl<L, W> Unpin for Word<L, W>
impl<L, W> UnwindSafe for Word<L, W>where
W: UnwindSafe,
L: 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