#[non_exhaustive]pub enum Word<'a> {
Simple(WordPart<'a>),
Concat(Vec<WordPart<'a>>),
}Expand description
A shell word: either a single part or a concatenation of parts.
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.
Simple(WordPart<'a>)
A word consisting of a single part.
Concat(Vec<WordPart<'a>>)
A word formed by concatenating multiple parts (e.g., "hello"$var).
Trait Implementations§
impl<'a> Eq for Word<'a>
impl<'a> StructuralPartialEq for Word<'a>
Auto Trait Implementations§
impl<'a> Freeze for Word<'a>
impl<'a> RefUnwindSafe for Word<'a>
impl<'a> Send for Word<'a>
impl<'a> Sync for Word<'a>
impl<'a> Unpin for Word<'a>
impl<'a> UnsafeUnpin for Word<'a>
impl<'a> UnwindSafe for Word<'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