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

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 meta-language encoding definitions.

Methods

impl StackBaseMask[src]

pub fn contains(self, base: StackBase) -> bool[src]

Check if this mask contains the base variant.

Trait Implementations

impl Clone for StackBaseMask[src]

impl Copy for StackBaseMask[src]

impl Debug for StackBaseMask[src]

impl Eq for StackBaseMask[src]

impl PartialEq<StackBaseMask> for StackBaseMask[src]

impl StructuralEq for StackBaseMask[src]

impl StructuralPartialEq for StackBaseMask[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.