Struct cranelift_codegen::isa::StackBaseMask
source · pub struct StackBaseMask(pub u8);
Expand description
Bit mask of supported stack bases.
Many instruction encodings can use different base registers while others only work with the
stack pointer, say. A StackBaseMask
is a bit mask of supported stack bases for a given
instruction encoding.
This behaves like a set of StackBase
variants.
The internal representation as a u8
is public because stack base masks are used in constant
tables generated from the Python encoding definitions.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
source§impl Clone for StackBaseMask
impl Clone for StackBaseMask
source§fn clone(&self) -> StackBaseMask
fn clone(&self) -> StackBaseMask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more