Struct darling::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 FromMeta for Ignored
[src]
fn from_meta(&Meta) -> Result<Ignored, Error>
[src]
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, Error>
[src]
fn from_word() -> Result<Self, Error>
[src]
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, Error>
[src]
Create an instance from a list of nested meta items.
fn from_value(value: &Lit) -> Result<Self, Error>
[src]
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, Error>
[src]
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self, Error>
[src]
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self, Error>
[src]
Create an instance from a bool literal in a value position.
impl FromGenerics for Ignored
[src]
impl FromVariant for Ignored
[src]
fn from_variant(&Variant) -> Result<Ignored, Error>
[src]
Create an instance from syn::Variant
, or return an error.
impl FromDeriveInput for Ignored
[src]
fn from_derive_input(&DeriveInput) -> Result<Ignored, Error>
[src]
Create an instance from syn::DeriveInput
, or return an error.
impl FromGenericParam for Ignored
[src]
fn from_generic_param(&GenericParam) -> Result<Ignored, Error>
[src]
impl Copy for Ignored
[src]
impl FromTypeParam for Ignored
[src]
impl Eq for Ignored
[src]
impl Hash for Ignored
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<Ignored> for Ignored
[src]
fn eq(&self, __arg_0: &Ignored) -> bool
[src]
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]
This method tests for !=
.
impl FromField for Ignored
[src]
impl Clone for Ignored
[src]
fn clone(&self) -> Ignored
[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 Debug for Ignored
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more