pub struct CSharpSwitchCase {
pub label: String,
pub stmts: Vec<CSharpStmt>,
}Expand description
A case inside a switch statement.
Fields§
§label: StringThe case label expression (or pattern string for C# 8+ pattern matching)
stmts: Vec<CSharpStmt>Trait Implementations§
Source§impl Clone for CSharpSwitchCase
impl Clone for CSharpSwitchCase
Source§fn clone(&self) -> CSharpSwitchCase
fn clone(&self) -> CSharpSwitchCase
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 CSharpSwitchCase
impl Debug for CSharpSwitchCase
Source§impl PartialEq for CSharpSwitchCase
impl PartialEq for CSharpSwitchCase
impl StructuralPartialEq for CSharpSwitchCase
Auto Trait Implementations§
impl Freeze for CSharpSwitchCase
impl RefUnwindSafe for CSharpSwitchCase
impl Send for CSharpSwitchCase
impl Sync for CSharpSwitchCase
impl Unpin for CSharpSwitchCase
impl UnsafeUnpin for CSharpSwitchCase
impl UnwindSafe for CSharpSwitchCase
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