pub struct GoCase {
pub pattern: Option<Vec<GoExpr>>,
pub body: Vec<GoStmt>,
}Expand description
A case in a switch statement.
Fields§
§pattern: Option<Vec<GoExpr>>None means default:
body: Vec<GoStmt>Trait Implementations§
impl StructuralPartialEq for GoCase
Auto Trait Implementations§
impl Freeze for GoCase
impl RefUnwindSafe for GoCase
impl Send for GoCase
impl Sync for GoCase
impl Unpin for GoCase
impl UnsafeUnpin for GoCase
impl UnwindSafe for GoCase
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