[][src]Struct syntex_syntax2::ast::Arm

pub struct Arm {
    pub attrs: Vec<Attribute>,
    pub pats: Vec<P<Pat>>,
    pub guard: Option<P<Expr>>,
    pub body: P<Expr>,
}

An arm of a 'match'.

E.g. 0...10 => { println!("match!") } as in

This example is not tested
match n {
    0...10 => { println!("match!") },
    // ..
}

Fields

attrs: Vec<Attribute>pats: Vec<P<Pat>>guard: Option<P<Expr>>body: P<Expr>

Trait Implementations

impl HasAttrs for Arm[src]

impl ToTokens for Arm[src]

impl PartialEq<Arm> for Arm[src]

impl Eq for Arm[src]

impl Clone for Arm[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for Arm[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Arm[src]

impl<'de> Deserialize<'de> for Arm[src]

impl Serialize for Arm[src]

Auto Trait Implementations

impl !Send for Arm

impl Unpin for Arm

impl !Sync for Arm

impl !UnwindSafe for Arm

impl !RefUnwindSafe for Arm

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]