Struct syn::Expr [−][src]
An expression.
Fields
node: ExprKind
Type of the expression.
attrs: Vec<Attribute>
Attributes tagged on the expression.
Trait Implementations
impl ToTokens for Expr
[src]
impl ToTokens for Expr
impl Debug for Expr
[src]
impl Debug for Expr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Expr
[src]
impl Clone for Expr
fn clone(&self) -> Expr
[src]
fn clone(&self) -> Expr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Expr
[src]
impl Eq for Expr
impl PartialEq for Expr
[src]
impl PartialEq for Expr
fn eq(&self, other: &Expr) -> bool
[src]
fn eq(&self, other: &Expr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Expr) -> bool
[src]
fn ne(&self, other: &Expr) -> bool
This method tests for !=
.
impl Hash for Expr
[src]
impl Hash for Expr
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[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 From<ExprKind> for Expr
[src]
impl From<ExprKind> for Expr