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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for SelfKind
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for SelfKind
[src]

impl Encodable for SelfKind
[src]

[src]

impl Decodable for SelfKind
[src]

[src]

impl Hash for SelfKind
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for SelfKind
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for SelfKind

impl !Sync for SelfKind