Struct syntax::ast::MethodUnstable [-] [+] [src]

pub struct Method {
    pub attrs: Vec<Attribute>,
    pub id: NodeId,
    pub span: Span,
    pub node: Method_,
}

Fields

attrs
id
span
node

Trait Implementations

impl PostExpansionMethod for Method

fn pe_ident<'a>(&'a self) -> Ident

fn pe_generics<'a>(&'a self) -> &'a Generics

fn pe_abi<'a>(&'a self) -> Abi

fn pe_explicit_self<'a>(&'a self) -> &'a ExplicitSelf

fn pe_unsafety<'a>(&'a self) -> Unsafety

fn pe_fn_decl<'a>(&'a self) -> &'a FnDecl

fn pe_body<'a>(&'a self) -> &'a Block

fn pe_vis<'a>(&'a self) -> Visibility

Derived Implementations

impl Debug for Method

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Method

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Method

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Method, Error>

impl Encodable for Method

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for Method

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Method

fn eq(&self, __arg_0: &Method) -> bool

fn ne(&self, __arg_0: &Method) -> bool

impl Clone for Method

fn clone(&self) -> Method

fn clone_from(&mut self, source: &Self)