[][src]Struct syn::FieldValue

pub struct FieldValue {
    pub attrs: Vec<Attribute>,
    pub member: Member,
    pub colon_token: Option<Colon>,
    pub expr: Expr,

A field-value pair in a struct literal.

This type is available only if Syn is built with the "full" feature.


attrs: Vec<Attribute>

Attributes tagged on the field.

member: Member

Name or index of the field.

colon_token: Option<Colon>

The colon in Struct { x: x }. If written in shorthand like Struct { x }, there is no colon.

expr: Expr

Value of the field.

Trait Implementations

impl Clone for FieldValue[src]

impl Debug for FieldValue[src]

impl Eq for FieldValue[src]

impl Hash for FieldValue[src]

impl Parse for FieldValue[src]

impl PartialEq<FieldValue> for FieldValue[src]

impl StructuralEq for FieldValue[src]

impl StructuralPartialEq for FieldValue[src]

impl ToTokens for FieldValue[src]

Auto Trait Implementations

impl !RefUnwindSafe for FieldValue

impl !Send for FieldValue

impl !Sync for FieldValue

impl Unpin for FieldValue

impl UnwindSafe for FieldValue

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Spanned for T where
    T: Spanned + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.