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 ValueTypeSet
pub fn contains(&self, typ: Type) -> bool
[src]
pub fn contains(&self, typ: Type) -> bool
Does typ
belong to this set?
pub fn example(&self) -> Type
[src]
pub fn example(&self) -> Type
Get 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 ValueTypeSet
fn clone(&self) -> ValueTypeSet
[src]
fn clone(&self) -> ValueTypeSet
Returns 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 ValueTypeSet
impl Debug for ValueTypeSet
[src]
impl Debug for ValueTypeSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ValueTypeSet
[src]
impl PartialEq for ValueTypeSet
fn eq(&self, other: &ValueTypeSet) -> bool
[src]
fn eq(&self, other: &ValueTypeSet) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for ValueTypeSet
[src]
impl Eq for ValueTypeSet
Auto Trait Implementations
impl Send for ValueTypeSet
impl Send for ValueTypeSet
impl Sync for ValueTypeSet
impl Sync for ValueTypeSet