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)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Alternative representation for Args describing self parameter of methods.
E.g. &mut self as in fn foo(&mut self)
Variants
Value(Mutability)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
self, mut self
Region(Option<Lifetime>, Mutability)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
&'lt self, &'lt mut self
Explicit(P<Ty>, Mutability)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
self: TYPE, mut self: TYPE
Trait Implementations
impl Clone for SelfKind[src]
impl Clone for SelfKindfn clone(&self) -> SelfKind[src]
fn clone(&self) -> SelfKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Encodable for SelfKind[src]
impl Encodable for SelfKindfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for SelfKind[src]
impl Decodable for SelfKindfn decode<__D: Decoder>(d: &mut __D) -> Result<SelfKind, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<SelfKind, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Debug for SelfKind[src]
impl Debug for SelfKind