pub struct Alt {
pub pat: Pat,
pub rhs: Rhs,
pub wheres: Vec<Decl>,
pub span: Span,
}Expand description
A case alternative.
Fields§
§pat: PatThe pattern.
rhs: RhsThe right-hand side.
wheres: Vec<Decl>Local bindings.
span: SpanThe span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alt
impl RefUnwindSafe for Alt
impl Send for Alt
impl Sync for Alt
impl Unpin for Alt
impl UnsafeUnpin for Alt
impl UnwindSafe for Alt
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