Enum rustc_ap_rustc_ast::ast::SelfKind [−][src]
pub enum SelfKind { Value(Mutability), Region(Option<Lifetime>, Mutability), Explicit(P<Ty>, Mutability), }
Expand description
Alternative representation for Arg
s 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 SelfKind
impl !UnwindSafe for SelfKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V