#[non_exhaustive]pub enum WordPart<'a> {
Bare(Atom<'a>),
DQuoted(Vec<Atom<'a>>),
SQuoted(&'a str),
}Expand description
A fragment of a word: bare text, quoted text, or a substitution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bare(Atom<'a>)
Unquoted content.
DQuoted(Vec<Atom<'a>>)
Double-quoted content (may contain expansions).
SQuoted(&'a str)
Single-quoted content (literal text, no expansions).
Trait Implementations§
impl<'a> Eq for WordPart<'a>
impl<'a> StructuralPartialEq for WordPart<'a>
Auto Trait Implementations§
impl<'a> Freeze for WordPart<'a>
impl<'a> RefUnwindSafe for WordPart<'a>
impl<'a> Send for WordPart<'a>
impl<'a> Sync for WordPart<'a>
impl<'a> Unpin for WordPart<'a>
impl<'a> UnsafeUnpin for WordPart<'a>
impl<'a> UnwindSafe for WordPart<'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