Struct cranelift_codegen::ir::instructions::ValueTypeSet [−][src]
pub struct ValueTypeSet {
pub lanes: BitSet<u16>,
pub ints: BitSet<u8>,
pub floats: BitSet<u8>,
pub bools: BitSet<u8>,
}A value type set describes the permitted set of types for a type variable.
Fields
lanes: BitSet<u16>
Allowed lane sizes
ints: BitSet<u8>
Allowed int widths
floats: BitSet<u8>
Allowed float widths
bools: BitSet<u8>
Allowed bool widths
Methods
impl ValueTypeSet[src]
impl ValueTypeSetpub fn contains(&self, typ: Type) -> bool[src]
pub fn contains(&self, typ: Type) -> boolDoes typ belong to this set?
pub fn example(&self) -> Type[src]
pub fn example(&self) -> TypeGet an example member of this type set.
This is used for error messages to avoid suggesting invalid types.
Trait Implementations
impl Clone for ValueTypeSet[src]
impl Clone for ValueTypeSetfn clone(&self) -> ValueTypeSet[src]
fn clone(&self) -> ValueTypeSetReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for ValueTypeSet[src]
impl Copy for ValueTypeSetimpl Debug for ValueTypeSet[src]
impl Debug for ValueTypeSetfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ValueTypeSet[src]
impl PartialEq for ValueTypeSetfn eq(&self, other: &ValueTypeSet) -> bool[src]
fn eq(&self, other: &ValueTypeSet) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ValueTypeSet) -> bool[src]
fn ne(&self, other: &ValueTypeSet) -> boolThis method tests for !=.
impl Eq for ValueTypeSet[src]
impl Eq for ValueTypeSetAuto Trait Implementations
impl Send for ValueTypeSet
impl Send for ValueTypeSetimpl Sync for ValueTypeSet
impl Sync for ValueTypeSet