Trait darling_core::codegen::ExtractAttribute
[−]
[src]
pub trait ExtractAttribute { fn local_declarations(&self) -> Tokens; fn immutable_declarations(&self) -> Tokens; fn attr_names(&self) -> &[&str]; fn forwarded_attrs(&self) -> Option<&ForwardAttrs>; fn param_name(&self) -> Tokens; fn core_loop(&self) -> Tokens; fn declarations(&self) -> Tokens { ... } fn extractor(&self) -> Tokens { ... } }
Infrastructure for generating an attribute extractor.
Required Methods
fn local_declarations(&self) -> Tokens
fn immutable_declarations(&self) -> Tokens
fn attr_names(&self) -> &[&str]
Gets the list of attribute names that should be parsed by the extractor.
fn forwarded_attrs(&self) -> Option<&ForwardAttrs>
fn param_name(&self) -> Tokens
Gets the name used by the generated impl to return to the syn
item passed as input.
fn core_loop(&self) -> Tokens
Gets the core from-meta-item loop that should be used on matching attributes.
Provided Methods
Implementors
impl<'a> ExtractAttribute for FromDeriveInputImpl<'a>
impl<'a> ExtractAttribute for FromFieldImpl<'a>
impl<'a> ExtractAttribute for FromTypeParamImpl<'a>
impl<'a> ExtractAttribute for FromVariantImpl<'a>