Struct darling_core::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: FromField> VariantData<F>
[src]

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.

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

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

Performs the conversion.

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

Performs the conversion.