Struct syn::FieldValue
[−]
[src]
pub struct FieldValue {
pub ident: Ident,
pub expr: Expr,
pub is_shorthand: bool,
pub attrs: Vec<Attribute>,
}A field-value pair in a struct literal.
Fields
ident: Ident
Name of the field.
expr: Expr
Value of the field.
is_shorthand: bool
Whether this is a shorthand field, e.g. Struct { x }
instead of Struct { x: x }.
attrs: Vec<Attribute>
Attributes tagged on the field.
Trait Implementations
impl ToTokens for FieldValue[src]
impl Debug for FieldValue[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for FieldValue[src]
fn clone(&self) -> FieldValue[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for FieldValue[src]
impl PartialEq for FieldValue[src]
fn eq(&self, __arg_0: &FieldValue) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FieldValue) -> bool[src]
This method tests for !=.