Struct rustc_typeck::hir::Arm
[−]
[src]
pub struct Arm { pub attrs: P<[Spanned<Attribute_>]>, pub pats: P<[P<Pat>]>, pub guard: Option<P<Expr>>, pub body: P<Expr>, }
Unstable (
rustc_private
)represents one arm of a 'match'
Fields
attrs: P<[Spanned<Attribute_>]>
Unstable (
rustc_private
)pats: P<[P<Pat>]>
Unstable (
rustc_private
)guard: Option<P<Expr>>
Unstable (
rustc_private
)body: P<Expr>
Unstable (
rustc_private
)Trait Implementations
Derived Implementations
impl Debug for Arm
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for Arm
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for Arm
impl Encodable for Arm
impl Eq for Arm
impl PartialEq<Arm> for Arm
fn eq(&self, __arg_0: &Arm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Arm) -> bool
This method tests for !=
.
impl Clone for Arm
fn clone(&self) -> Arm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more