Struct syntax::ast::Method[src]

pub struct Method {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub generics: Generics,
    pub explicit_self: ExplicitSelf,
    pub fn_style: FnStyle,
    pub decl: P<FnDecl>,
    pub body: P<Block>,
    pub id: NodeId,
    pub span: Span,
    pub vis: Visibility,
}

Fields

ident
attrs
generics
explicit_self
fn_style
decl
body
id
span
vis

Trait Implementations

Derived Implementations

impl<__S: Writer> Hash<__S> for Method

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Method

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Method

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

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