Struct darling_core::ast::Fields [−][src]
Expand description
Equivalent to syn::Fields
, but replaces the AST element with a generic.
Fields
style: Style
fields: Vec<T>
Implementations
Splits the Fields
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.
Trait Implementations
fn uses_lifetimes<'a>(
&self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
fn uses_lifetimes<'a>(
&self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
Returns the subset of the queried lifetimes that are used by the implementing syntax element. Read more
Find all used lifetimes, then clone them and return that set.
Returns the subset of the queried type parameters that are used by the implementing syntax element. Read more
Find all type params using uses_type_params
, then clone the found values and return the set.
Auto Trait Implementations
impl<T> RefUnwindSafe for Fields<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Fields<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more