Struct cranelift_codegen::isa::StackBaseMask[][src]

pub struct StackBaseMask(pub u8);

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.

Methods

impl StackBaseMask
[src]

Check if this mask contains the base variant.

Trait Implementations

impl Clone for StackBaseMask
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for StackBaseMask
[src]

impl Debug for StackBaseMask
[src]

Formats the value using the given formatter. Read more

impl PartialEq for StackBaseMask
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StackBaseMask
[src]

Auto Trait Implementations