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]
pub fn empty_from(vd: &Fields) -> Fields<T>
[src]
pub 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.
pub fn is_newtype(&self) -> bool
[src]
Returns true if this variant's data makes it a newtype.
pub fn is_unit(&self) -> bool
[src]
pub fn is_tuple(&self) -> bool
[src]
pub fn is_struct(&self) -> bool
[src]
pub fn as_ref(&'a self) -> Fields<&'a T>
[src]
pub 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> Eq for Fields<T> where
T: Eq,
[src]
T: Eq,
impl<T> PartialEq<Fields<T>> for Fields<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, __arg_0: &Fields<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fields<T>) -> bool
[src]
This method tests for !=
.
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> Clone for Fields<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Fields<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Debug for Fields<T> where
T: Debug,
[src]
T: Debug,