Struct darling::util::Ignored
[−]
pub struct Ignored;
An efficient way of discarding data from an attribute.
All meta-items, fields, and variants will be successfully read into
the Ignored struct, with all properties discarded.
Trait Implementations
impl Clone for Ignored
impl Debug for Ignored
impl Hash for Ignored
impl FromVariant for Ignored
fn from_variant(&Variant) -> Result<Ignored, Error>
Create an instance from syn::Variant, or return an error.
impl FromDeriveInput for Ignored
fn from_derive_input(&DeriveInput) -> Result<Ignored, Error>
Create an instance from syn::DeriveInput, or return an error.
impl FromMetaItem for Ignored
fn from_meta_item(&MetaItem) -> Result<Ignored, Error>
Create an instance from a syn::MetaItem by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more
fn from_nested_meta_item(&NestedMetaItem) -> Result<Ignored, Error>
fn from_word() -> Result<Self, Error>
Create an instance from the presence of the word in the attribute with no additional options specified. Read more
fn from_list(items: &[NestedMetaItem]) -> Result<Self, Error>
Create an instance from a list of nested meta items.
fn from_value(value: &Lit) -> Result<Self, Error>
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>
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self, Error>
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self, Error>
Create an instance from a bool literal in a value position.