Enum rustc_hir::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 ImplicitSelfKindimpl Send for ImplicitSelfKindimpl Sync for ImplicitSelfKindimpl Unpin for ImplicitSelfKindimpl UnwindSafe for ImplicitSelfKindBlanket 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: 1 byte