pub enum ShellWord {
Literal(String),
Concat(Vec<ShellWord>),
}Expand description
Shell word - can be simple literal or complex expansion
Variants§
Literal(String)
Plain text token. Most ZWC-decoded words land here. Goes through
expand_string (plus glob/tilde/etc. as text-level transforms) for
final output.
Concat(Vec<ShellWord>)
Concatenation of sub-words. ZWC array decoding produces this with child Literals; nothing else constructs it now that the legacy hand-rolled parser is gone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShellWord
impl<'de> Deserialize<'de> for ShellWord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShellWord
impl RefUnwindSafe for ShellWord
impl Send for ShellWord
impl Sync for ShellWord
impl Unpin for ShellWord
impl UnsafeUnpin for ShellWord
impl UnwindSafe for ShellWord
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