Struct darling::ast::Fields
[−]
[src]
pub struct Fields<T> {
pub style: Style,
pub fields: Vec<T>,
}Fields
style: Style
fields: Vec<T>
Methods
impl<T> Fields<T>[src]
fn empty_from(vd: &Fields) -> Fields<T>[src]
fn split(self) -> (Style, Vec<T>)[src]
Splits the Fields into its style and fields for further processing.
Returns an empty Vec for Unit data.
fn is_newtype(&self) -> bool[src]
Returns true if this variant's data makes it a newtype.
fn is_unit(&self) -> bool[src]
fn is_tuple(&self) -> bool[src]
fn is_struct(&self) -> bool[src]
fn as_ref(&'a self) -> Fields<&'a T>[src]
fn map<F, U>(self, map: F) -> Fields<U> where
F: FnMut(T) -> U, [src]
F: FnMut(T) -> U,
impl<F> Fields<F> where
F: FromField, [src]
F: FromField,
Trait Implementations
impl<T> Clone for Fields<T> where
T: Clone, [src]
T: Clone,
impl<T> Eq for Fields<T> where
T: Eq, [src]
T: Eq,
impl<T, U> From<(Style, U)> for Fields<T> where
U: Into<Vec<T>>, [src]
U: Into<Vec<T>>,
impl<T> From<Style> for Fields<T>[src]
impl<T> PartialEq<Fields<T>> for Fields<T> where
T: PartialEq<T>, [src]
T: PartialEq<T>,
impl<T> Debug for Fields<T> where
T: Debug, [src]
T: Debug,