Enum syntax::ast::SelfKind[][src]

pub enum SelfKind {
    Value(Mutability),
    Region(Option<Lifetime>, Mutability),
    Explicit(P<Ty>, Mutability),
}

Alternative representation for Args describing self parameter of methods.

E.g. &mut self as in fn foo(&mut self)

Variants

self, mut self

&'lt self, &'lt mut self

self: TYPE, mut self: TYPE

Trait Implementations

impl Clone for SelfKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for SelfKind
[src]

impl Decodable for SelfKind
[src]

impl Debug for SelfKind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for SelfKind

impl !Sync for SelfKind