Struct vesta_syntax::CaseArm[][src]

pub struct CaseArm {
    pub tag: Option<usize>,
    pub tag_span: Span,
    pub arm: Arm,
}

A single arm of a case!, i.e. 1(x, Some(y)) => x + y,. This implements Parse.

Fields

tag: Option<usize>

The tag for this case, or None if the case was a catch-all _ case.

tag_span: Span

The span for the tag.

arm: Arm

The Arm for the case, i.e. the pattern following the tag, its =>, and its body.

Trait Implementations

impl Clone for CaseArm[src]

impl Parse for CaseArm[src]

Auto Trait Implementations

impl RefUnwindSafe for CaseArm

impl !Send for CaseArm

impl !Sync for CaseArm

impl Unpin for CaseArm

impl UnwindSafe for CaseArm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.