pub struct CSharpSwitchArm {
pub pattern: String,
pub guard: Option<CSharpExpr>,
pub body: CSharpExpr,
}Expand description
One arm in a switch expression.
Fields§
§pattern: StringPattern string (e.g. Foo(var a, var b), > 0, _)
guard: Option<CSharpExpr>Optional guard: when condition
body: CSharpExprResult expression
Trait Implementations§
Source§impl Clone for CSharpSwitchArm
impl Clone for CSharpSwitchArm
Source§fn clone(&self) -> CSharpSwitchArm
fn clone(&self) -> CSharpSwitchArm
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 moreSource§impl Debug for CSharpSwitchArm
impl Debug for CSharpSwitchArm
Source§impl PartialEq for CSharpSwitchArm
impl PartialEq for CSharpSwitchArm
impl StructuralPartialEq for CSharpSwitchArm
Auto Trait Implementations§
impl Freeze for CSharpSwitchArm
impl RefUnwindSafe for CSharpSwitchArm
impl Send for CSharpSwitchArm
impl Sync for CSharpSwitchArm
impl Unpin for CSharpSwitchArm
impl UnsafeUnpin for CSharpSwitchArm
impl UnwindSafe for CSharpSwitchArm
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