#[non_exhaustive]pub enum Command<'a> {
Exec(Spanned<SmallVec<[UnescapedString<'a>; 1]>>),
Shell(Spanned<&'a str>),
}
Expand description
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.
Exec(Spanned<SmallVec<[UnescapedString<'a>; 1]>>)
Exec-form (JSON array)
Shell(Spanned<&'a str>)
Shell-form (space-separated string or here-documents), escape preserved
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnwindSafe for Command<'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