pub struct CaseItem {
pub patterns: Vec<Word>,
pub cmd: Option<CompoundList>,
pub post_action: CaseItemPostAction,
}Expand description
An individual matching case item in a case clause.
Fields§
§patterns: Vec<Word>The patterns that select this case branch.
cmd: Option<CompoundList>The commands to execute if this case branch is selected.
post_action: CaseItemPostActionWhen the case branch is selected, the action to take after the command is executed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaseItem
impl RefUnwindSafe for CaseItem
impl Send for CaseItem
impl Sync for CaseItem
impl Unpin for CaseItem
impl UnwindSafe for CaseItem
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