pub enum StatementKind {
Show 18 variants
Command,
Pipeline,
List,
Compound,
Subshell,
If,
While,
For,
CStyleFor,
Case,
FunctionDefinition,
Redirected,
Declaration,
Unset,
Test,
Negated,
VariableAssignment,
VariableAssignments,
}Expand description
Coarse tag mirroring crate::ast::Statement variants. Lets downstream
consumers gate on statement shape (e.g. “skip splitting if any slice is a
Pipeline / List / If / For”) without re-walking the full AST.
Variants§
Command
Pipeline
List
Compound
Subshell
If
While
For
CStyleFor
Case
FunctionDefinition
Redirected
Declaration
Unset
Test
Negated
VariableAssignment
VariableAssignments
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
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 moreimpl Copy for StatementKind
Source§impl Debug for StatementKind
impl Debug for StatementKind
Source§impl<'de> Deserialize<'de> for StatementKind
impl<'de> Deserialize<'de> for StatementKind
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
impl Eq for StatementKind
Source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
Source§impl Serialize for StatementKind
impl Serialize for StatementKind
impl StructuralPartialEq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnsafeUnpin for StatementKind
impl UnwindSafe for StatementKind
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