pub struct CaseCommand {
pub word: Word,
pub items: Vec<CaseItem>,
pub span: Span,
}Expand description
A case word in pattern) body ;; ... esac command.
Fields§
§word: WordThe word being tested.
items: Vec<CaseItem>The list of pattern arms.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for CaseCommand
impl Clone for CaseCommand
Source§fn clone(&self) -> CaseCommand
fn clone(&self) -> CaseCommand
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 CaseCommand
impl Debug for CaseCommand
Source§impl PartialEq for CaseCommand
impl PartialEq for CaseCommand
Source§fn eq(&self, other: &CaseCommand) -> bool
fn eq(&self, other: &CaseCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CaseCommand
Auto Trait Implementations§
impl Freeze for CaseCommand
impl RefUnwindSafe for CaseCommand
impl Send for CaseCommand
impl Sync for CaseCommand
impl Unpin for CaseCommand
impl UnsafeUnpin for CaseCommand
impl UnwindSafe for CaseCommand
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