BindingMode in rustc_ast::ast - Rust (original) (raw)
pub struct BindingMode(pub ByRef, pub Mutability);
Expand description
The mode of a binding (mut
, ref mut
, etc). Used for both the explicit binding annotations given in the HIR for a binding and the final binding mode that we infer after type inference/match ergonomics..0
is the by-reference mode (ref
, ref mut
, or by value),.1
is the mutability of the binding.
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: 2 bytes