Enum rustc_ast::ast::SelfKind [−][src]
pub enum SelfKind {
Value(Mutability),
Region(Option<Lifetime>, Mutability),
Explicit(P<Ty>, Mutability),
}Expand description
Alternative representation for Args describing self parameter of methods.
E.g., &mut self as in fn foo(&mut self).
Variants
Value(Mutability)self, mut self
Region(Option<Lifetime>, Mutability)&'lt self, &'lt mut self
Explicit(P<Ty>, Mutability)self: TYPE, mut self: TYPE
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SelfKindimpl !UnwindSafe for SelfKindBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes