Struct devise::syn::TraitItemMethod
source · pub struct TraitItemMethod {
pub attrs: Vec<Attribute, Global>,
pub sig: MethodSig,
pub default: Option<Block>,
pub semi_token: Option<Semi>,
}
Expand description
A trait method within the definition of a trait.
This type is available if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute, Global>
§sig: MethodSig
§default: Option<Block>
§semi_token: Option<Semi>
Trait Implementations§
source§impl Clone for TraitItemMethod
impl Clone for TraitItemMethod
source§fn clone(&self) -> TraitItemMethod
fn clone(&self) -> TraitItemMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TraitItemMethod
impl Debug for TraitItemMethod
source§impl From<TraitItemMethod> for TraitItem
impl From<TraitItemMethod> for TraitItem
source§fn from(e: TraitItemMethod) -> TraitItem
fn from(e: TraitItemMethod) -> TraitItem
Converts to this type from the input type.