Enum syntex_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 PartialEq for SelfKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SelfKind
[src]

impl Encodable for SelfKind
[src]

Serialize a value using an Encoder.

impl Decodable for SelfKind
[src]

Deserialize a value using a Decoder.

impl Hash for SelfKind
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for SelfKind
[src]

Formats the value using the given formatter.