Struct darling_core::util::Ignored [−][src]
pub struct Ignored;
An efficient way of discarding data from a syntax element.
All syntax elements will be successfully read into
the Ignored
struct, with all properties discarded.
Trait Implementations
impl Debug for Ignored
[src]
impl Debug for Ignored
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Ignored
[src]
impl Clone for Ignored
fn clone(&self) -> Ignored
[src]
fn clone(&self) -> Ignored
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Ignored
[src]
impl Copy for Ignored
impl PartialEq for Ignored
[src]
impl PartialEq for Ignored
fn eq(&self, other: &Ignored) -> bool
[src]
fn eq(&self, other: &Ignored) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Ignored
[src]
impl Eq for Ignored
impl Hash for Ignored
[src]
impl Hash for Ignored
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for Ignored
[src]
impl Default for Ignored
impl FromGenericParam for Ignored
[src]
impl FromGenericParam for Ignored
fn from_generic_param(_: &GenericParam) -> Result<Self>
[src]
fn from_generic_param(_: &GenericParam) -> Result<Self>
impl FromGenerics for Ignored
[src]
impl FromGenerics for Ignored
fn from_generics(_: &Generics) -> Result<Self>
[src]
fn from_generics(_: &Generics) -> Result<Self>
impl FromTypeParam for Ignored
[src]
impl FromTypeParam for Ignored
fn from_type_param(_: &TypeParam) -> Result<Self>
[src]
fn from_type_param(_: &TypeParam) -> Result<Self>
impl FromMeta for Ignored
[src]
impl FromMeta for Ignored
fn from_meta(_: &Meta) -> Result<Self>
[src]
fn from_meta(_: &Meta) -> Result<Self>
Create an instance from a syn::Meta
by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more
fn from_nested_meta(item: &NestedMeta) -> Result<Self>
[src]
fn from_nested_meta(item: &NestedMeta) -> Result<Self>
fn from_word() -> Result<Self>
[src]
fn from_word() -> Result<Self>
Create an instance from the presence of the word in the attribute with no additional options specified. Read more
fn from_list(items: &[NestedMeta]) -> Result<Self>
[src]
fn from_list(items: &[NestedMeta]) -> Result<Self>
Create an instance from a list of nested meta items.
fn from_value(value: &Lit) -> Result<Self>
[src]
fn from_value(value: &Lit) -> Result<Self>
Create an instance from a literal value of either foo = "bar"
or foo("bar")
. This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more
fn from_char(value: char) -> Result<Self>
[src]
fn from_char(value: char) -> Result<Self>
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self>
[src]
fn from_string(value: &str) -> Result<Self>
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self>
[src]
fn from_bool(value: bool) -> Result<Self>
Create an instance from a bool literal in a value position.
impl FromDeriveInput for Ignored
[src]
impl FromDeriveInput for Ignored
fn from_derive_input(_: &DeriveInput) -> Result<Self>
[src]
fn from_derive_input(_: &DeriveInput) -> Result<Self>
Create an instance from syn::DeriveInput
, or return an error.
impl FromField for Ignored
[src]
impl FromField for Ignored
fn from_field(_: &Field) -> Result<Self>
[src]
fn from_field(_: &Field) -> Result<Self>
impl FromVariant for Ignored
[src]
impl FromVariant for Ignored
fn from_variant(_: &Variant) -> Result<Self>
[src]
fn from_variant(_: &Variant) -> Result<Self>
Create an instance from syn::Variant
, or return an error.
impl UsesTypeParams for Ignored
[src]
impl UsesTypeParams for Ignored
fn uses_type_params<'a>(
&self,
_opts: &Options,
_: &'a IdentSet
) -> IdentRefSet<'a>
[src]
fn uses_type_params<'a>(
&self,
_opts: &Options,
_: &'a IdentSet
) -> IdentRefSet<'a>
Returns the subset of the queried type parameters that are used by the implementing syntax element. Read more
fn uses_type_params_cloned(
&self,
options: &Options,
type_set: &IdentSet
) -> IdentSet
[src]
fn uses_type_params_cloned(
&self,
options: &Options,
type_set: &IdentSet
) -> IdentSet
Find all type params using uses_type_params
, then clone the found values and return the set.
impl UsesLifetimes for Ignored
[src]
impl UsesLifetimes for Ignored
fn uses_lifetimes<'a>(
&self,
_opts: &Options,
_: &'a LifetimeSet
) -> LifetimeRefSet<'a>
[src]
fn uses_lifetimes<'a>(
&self,
_opts: &Options,
_: &'a LifetimeSet
) -> LifetimeRefSet<'a>
Returns the subset of the queried lifetimes that are used by the implementing syntax element. Read more
fn uses_lifetimes_cloned(
&self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet
[src]
fn uses_lifetimes_cloned(
&self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet
Find all used lifetimes, then clone them and return that set.