Struct syntex_syntax::ast::MethodSig [] [src]

pub struct MethodSig {
    pub unsafety: Unsafety,
    pub constness: Constness,
    pub abi: Abi,
    pub decl: P<FnDecl>,
    pub generics: Generics,
    pub explicit_self: ExplicitSelf,
}

Represents a method's signature in a trait declaration, or in an implementation.

Fields

unsafety
constness
abi
decl
generics
explicit_self

Trait Implementations

Derived Implementations

impl Debug for MethodSig

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

impl Hash for MethodSig

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

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

impl Decodable for MethodSig

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

impl Encodable for MethodSig

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

impl Eq for MethodSig

impl PartialEq for MethodSig

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

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

impl Clone for MethodSig

fn clone(&self) -> MethodSig

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