Enum rustc_middle::mir::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.
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 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