[−][src]Trait syn_ext::ext::MetaExt
Extension for syn::Meta
Required methods
fn is_path(&self) -> bool
Returns true if self matches syn::Meta::Path
fn is_list(&self) -> bool
Returns true if self matches syn::Meta::List
fn is_name_value(&self) -> bool
Returns true if self matches syn::Meta::NameValue
fn promote_to_list(&mut self, paren: Paren) -> Result<&mut MetaList>
Promotes to empty syn::Meta::List with given paren if syn::Meta::Path
A syn::Meta::Path value can be regarded as an empty syn::Meta::List.
promote means converting syn::Meta::Path to an actual empty syn::Meta::List.
fn list(&self) -> Result<&MetaList>
Returns syn::MetaList of syn::Meta::List; Otherwise Err
fn list_mut(&mut self) -> Result<&mut MetaList>
Returns syn::MetaList of syn::Meta::List; Otherwise Err
fn name_value(&self) -> Result<&MetaNameValue>
Returns syn::MetaNameValue of syn::Meta::NameValue; Otherwise Err
fn name_value_mut(&mut self) -> Result<&mut MetaNameValue>
Returns syn::MetaNameValue of syn::Meta::NameValue; Otherwise Err