Struct darling::ast::Fields [] [src]

pub struct Fields<T> {
    pub style: Style,
    pub fields: Vec<T>,
}

Fields

Methods

impl<T> Fields<T>
[src]

[src]

[src]

Splits the Fields into its style and fields for further processing. Returns an empty Vec for Unit data.

[src]

Returns true if this variant's data makes it a newtype.

[src]

[src]

[src]

[src]

[src]

impl<F> Fields<F> where
    F: FromField
[src]

[src]

Trait Implementations

impl<T> Eq for Fields<T> where
    T: Eq
[src]

impl<T> PartialEq<Fields<T>> for Fields<T> where
    T: PartialEq<T>, 
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T, U> From<(Style, U)> for Fields<T> where
    U: Into<Vec<T>>, 
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Debug for Fields<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Fields<T> where
    T: Send

impl<T> Sync for Fields<T> where
    T: Sync