pub struct CaseArm {
pub patterns: Vec<Word>,
pub body: Script,
}Expand description
One PATTERN|PATTERN) BODY ;; arm of a Cmd::Case. The patterns are glob words matched
against the subject; they are never executed, so only body carries risk.
Fields§
§patterns: Vec<Word>§body: ScriptTrait Implementations§
impl Eq for CaseArm
impl StructuralPartialEq for CaseArm
Auto Trait Implementations§
impl Freeze for CaseArm
impl RefUnwindSafe for CaseArm
impl Send for CaseArm
impl Sync for CaseArm
impl Unpin for CaseArm
impl UnsafeUnpin for CaseArm
impl UnwindSafe for CaseArm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.