[−][src]Struct darling_core::ast::Fields
Equivalent to syn::Fields
, but replaces the AST element with a generic.
Fields
style: Style
fields: Vec<T>
Methods
impl<T> Fields<T>
[src]
impl<T> Fields<T>
pub fn empty_from(vd: &Fields) -> Self | [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>(&'a self) -> Fields<&'a T> | [src] |
pub fn map<F, U>(self, map: F) -> Fields<U> where | [src] |
pub fn iter(&self) -> Iter<T> | [src] |
impl<F: FromField> Fields<F>
[src]
impl<F: FromField> Fields<F>
Trait Implementations
impl<T: UsesLifetimes> UsesLifetimes for Fields<T>
[src]
impl<T: UsesLifetimes> UsesLifetimes for Fields<T>
fn uses_lifetimes<'a>( | [src] |
fn uses_lifetimes_cloned( | [src] |
Find all used lifetimes, then clone them and return that set.
impl<T: UsesTypeParams> UsesTypeParams for Fields<T>
[src]
impl<T: UsesTypeParams> UsesTypeParams for Fields<T>
fn uses_type_params<'a>( | [src] |
fn uses_type_params_cloned( | [src] |
Find all type params using uses_type_params
, then clone the found values and return the set.
impl<T: PartialEq> PartialEq<Fields<T>> for Fields<T>
[src]
impl<T: PartialEq> PartialEq<Fields<T>> for Fields<T>
impl<T: Eq> Eq for Fields<T>
[src]
impl<T: Eq> Eq for Fields<T>
impl<T: Clone> Clone for Fields<T>
[src]
impl<T: Clone> Clone for Fields<T>
fn clone(&self) -> Fields<T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<T> From<Style> for Fields<T>
[src]
impl<T> From<Style> for Fields<T>
impl<T, U: Into<Vec<T>>> From<(Style, U)> for Fields<T>
[src]
impl<T, U: Into<Vec<T>>> From<(Style, U)> for Fields<T>
impl<T> IntoIterator for Fields<T>
[src]
impl<T> IntoIterator for Fields<T>
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<T: Debug> Debug for Fields<T>
[src]
impl<T: Debug> Debug for Fields<T>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |