pub trait ParseMeta {
// Required methods
fn is_unit() -> bool;
fn parse_meta(&mut self, meta: ParseNestedMeta<'_>) -> Result<()>;
// Provided methods
fn parse_attr(&mut self, attr: &Attribute) -> Result<()> { ... }
fn parse_meta_list(&mut self, meta_list: &MetaList) -> Result<()> { ... }
fn parse_tokens(&mut self, tokens: TokenStream) -> Result<()> { ... }
}
Expand description
Required Methods§
sourcefn parse_meta(&mut self, meta: ParseNestedMeta<'_>) -> Result<()>
fn parse_meta(&mut self, meta: ParseNestedMeta<'_>) -> Result<()>
Parse one meta
.
Provided Methods§
sourcefn parse_tokens(&mut self, tokens: TokenStream) -> Result<()>
fn parse_tokens(&mut self, tokens: TokenStream) -> Result<()>
Parse one TokenStream
.
Object Safety§
This trait is not object safe.