pub struct Alt {
pub pat: Pat,
pub body: Expr,
pub pos: Pos,
pub span: Span,
}Fields§
§pat: PatPattern to match before ->.
body: ExprAlternative body after ->.
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