pub struct AltBranch {
pub guards: Vec<GuardQualifier>,
pub body: Expr,
pub pos: Pos,
pub span: Span,
}Expand description
One guarded or unguarded branch of a case/try alternative.
Fields§
§guards: Vec<GuardQualifier>Comma-separated guard qualifiers before ->; empty for unguarded branches.
body: ExprBranch body after ->.
pos: PosPosition of the branch’s first token (| or ->).
span: SpanSpan of the whole branch.
Trait Implementations§
impl Eq for AltBranch
impl StructuralPartialEq for AltBranch
Auto Trait Implementations§
impl Freeze for AltBranch
impl RefUnwindSafe for AltBranch
impl Send for AltBranch
impl Sync for AltBranch
impl Unpin for AltBranch
impl UnsafeUnpin for AltBranch
impl UnwindSafe for AltBranch
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