pub enum ZshCommand {
Show 15 variants
Simple(ZshSimple),
Subsh(Box<ZshProgram>),
Cursh(Box<ZshProgram>),
For(ZshFor),
Case(ZshCase),
If(ZshIf),
While(ZshWhile),
Until(ZshWhile),
Repeat(ZshRepeat),
FuncDef(ZshFuncDef),
Time(Option<Box<ZshSublist>>),
Cond(ZshCond),
Arith(String),
Try(ZshTry),
Redirected(Box<ZshCommand>, Vec<ZshRedir>),
}Expand description
A command
Variants§
Simple(ZshSimple)
Subsh(Box<ZshProgram>)
Cursh(Box<ZshProgram>)
For(ZshFor)
Case(ZshCase)
If(ZshIf)
While(ZshWhile)
Until(ZshWhile)
Repeat(ZshRepeat)
FuncDef(ZshFuncDef)
Time(Option<Box<ZshSublist>>)
Cond(ZshCond)
Arith(String)
Try(ZshTry)
Redirected(Box<ZshCommand>, Vec<ZshRedir>)
Compound command with trailing redirects:
{ cmd } 2>&1, (...) >file, if ...; fi >file, etc.
Simple commands carry redirects in their own struct; this wrapper
is only used for compound forms.
Trait Implementations§
Source§impl Clone for ZshCommand
impl Clone for ZshCommand
Source§fn clone(&self) -> ZshCommand
fn clone(&self) -> ZshCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZshCommand
impl Debug for ZshCommand
Source§impl<'de> Deserialize<'de> for ZshCommand
impl<'de> Deserialize<'de> for ZshCommand
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 ZshCommand
impl RefUnwindSafe for ZshCommand
impl Send for ZshCommand
impl Sync for ZshCommand
impl Unpin for ZshCommand
impl UnsafeUnpin for ZshCommand
impl UnwindSafe for ZshCommand
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