[][src]Struct cranelift_codegen_meta::cdsl::regs::RegClassBuilder

pub(crate) struct RegClassBuilder {
    pub name: &'static str,
    pub width: u8,
    pub count: u8,
    pub start: u8,
    pub proto: RegClassProto,
}

Fields

name: &'static strwidth: u8count: u8start: u8proto: RegClassProto

Methods

impl RegClassBuilder[src]

pub fn new_toplevel(name: &'static str, bank: RegBankIndex) -> Self[src]

pub fn subclass_of(
    name: &'static str,
    parent_index: RegClassIndex,
    start: u8,
    stop: u8
) -> Self
[src]

pub fn count(self, count: u8) -> Self[src]

pub fn width(self, width: u8) -> Self[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<T> From<T> for T[src]

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

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.