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

Important traits for &'a mut [u8]

Gets the list of attribute names that should be parsed by the extractor.

Gets the name used by the generated impl to return to the syn item passed as input.

Gets the core from-meta-item loop that should be used on matching attributes.

Provided Methods

Generates the main extraction loop.

Implementors