Enum rustc_hir::ImplicitSelfKind [−][src]
pub enum ImplicitSelfKind {
Imm,
Mut,
ImmRef,
MutRef,
None,
}
Expand description
Represents what type of implicit self a function has, if any.
Variants
Represents a fn x(self);
.
Represents a fn x(mut self);
.
Represents a fn x(&self);
.
Represents a fn x(&mut self);
.
Represents when a function does not have a self argument or
when a function has a self: X
argument.
Implementations
Does this represent an implicit self?
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImplicitSelfKind
impl Send for ImplicitSelfKind
impl Sync for ImplicitSelfKind
impl Unpin for ImplicitSelfKind
impl UnwindSafe for ImplicitSelfKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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: 1 byte
Size for each variant:
Imm
: 0 bytesMut
: 0 bytesImmRef
: 0 bytesMutRef
: 0 bytesNone
: 0 bytes