pub struct MatchArmExt {
pub pattern: String,
pub body: String,
pub guard: Option<String>,
}Expand description
A pattern match arm.
Fields§
§pattern: StringThe pattern string
body: StringThe body string
guard: Option<String>Optional guard
Implementations§
Source§impl MatchArmExt
impl MatchArmExt
Trait Implementations§
Source§impl Clone for MatchArmExt
impl Clone for MatchArmExt
Source§fn clone(&self) -> MatchArmExt
fn clone(&self) -> MatchArmExt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatchArmExt
impl RefUnwindSafe for MatchArmExt
impl Send for MatchArmExt
impl Sync for MatchArmExt
impl Unpin for MatchArmExt
impl UnsafeUnpin for MatchArmExt
impl UnwindSafe for MatchArmExt
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