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

pub enum SelfKind {
    Value(Mutability),
    Region(Option<Lifetime>, Mutability),
    Explicit(P<Ty>, Mutability),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Alternative representation for Args describing self parameter of methods.

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

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

self, mut self

🔬 This is a nightly-only experimental API. (rustc_private)

&'lt self, &'lt mut self

🔬 This is a nightly-only experimental API. (rustc_private)

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]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl Decodable for SelfKind
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

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.