[go: up one dir, main page]

Struct darling::ast::VariantData [] [src]

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

Fields

Methods

impl<T> VariantData<T>
[src]

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

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

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

Trait Implementations

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

Performs the conversion.

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

Performs the conversion.

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

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

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

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