pub struct SwiftCase {
pub pattern: String,
pub body: Vec<SwiftStmt>,
}Expand description
A case arm in a switch statement.
Fields§
§pattern: StringPattern string (e.g. ".some(let x)", "0", "default")
body: Vec<SwiftStmt>Body statements for this case
Trait Implementations§
impl StructuralPartialEq for SwiftCase
Auto Trait Implementations§
impl Freeze for SwiftCase
impl RefUnwindSafe for SwiftCase
impl Send for SwiftCase
impl Sync for SwiftCase
impl Unpin for SwiftCase
impl UnsafeUnpin for SwiftCase
impl UnwindSafe for SwiftCase
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