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

pub struct TypeMethod {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub unsafety: Unsafety,
    pub abi: Abi,
    pub decl: P<FnDecl>,
    pub generics: Generics,
    pub explicit_self: ExplicitSelf,
    pub id: NodeId,
    pub span: Span,
    pub vis: Visibility,
}

Represents a required method in a trait declaration, one without a default implementation

Fields

ident
attrs
unsafety
abi
decl
generics
explicit_self
id
span
vis

Trait Implementations

Derived Implementations

impl Debug for TypeMethod

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

impl Hash for TypeMethod

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

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

impl Decodable for TypeMethod

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

impl Encodable for TypeMethod

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

impl Eq for TypeMethod

fn assert_receiver_is_total_eq(&self)

impl PartialEq for TypeMethod

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

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

impl Clone for TypeMethod

fn clone(&self) -> TypeMethod

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