pub struct Alt {
pub pat: Pat,
pub body: Expr,
pub branches: Vec<AltBranch>,
pub where_bindings: Vec<Binding>,
pub pos: Pos,
pub span: Span,
}Fields§
§pat: PatPattern to match before -> or the first |.
body: ExprFirst branch body for convenience; mirrors branches[0].body.
branches: Vec<AltBranch>Source-ordered guarded/unguarded branches for this alternative.
where_bindings: Vec<Binding>where helper bindings attached to this alternative.
pos: PosPosition of the alternative’s first token.
span: SpanSpan of the whole alternative.
Trait Implementations§
impl Eq for Alt
impl StructuralPartialEq for Alt
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