[−][src]Enum cranelift_codegen_meta::cdsl::types::ValueType
A concrete SSA value type.
All SSA values have a type that is described by an instance of ValueType
or one of its subclasses.
Variants
Lane(LaneType)
Reference(ReferenceType)
Special(SpecialType)
Vector(VectorType)
Implementations
impl ValueType
[src]
pub fn all_lane_types() -> LaneTypeIterator
[src]
Iterate through all of the lane types.
pub fn all_special_types() -> SpecialTypeIterator
[src]
Iterate through all of the special types (neither lanes nor vectors).
pub fn all_reference_types() -> ReferenceTypeIterator
[src]
pub fn doc(&self) -> String
[src]
Return a string containing the documentation comment for this type.
pub fn lane_bits(&self) -> u64
[src]
Return the number of bits in a lane.
pub fn lane_count(&self) -> u64
[src]
Return the number of lanes.
pub fn membytes(&self) -> u64
[src]
Find the number of bytes that this type occupies in memory.
pub fn number(&self) -> Option<u8>
[src]
Find the unique number associated with this type.
pub fn rust_name(&self) -> String
[src]
Return the name of this type for generated Rust source files.
pub fn _wider_or_equal(&self, rhs: &ValueType) -> bool
[src]
Return true iff:
- self and other have equal number of lanes
- each lane in self has at least as many bits as a lane in other
pub fn width(&self) -> u64
[src]
Return the total number of bits of an instance of this type.
Trait Implementations
impl Clone for ValueType
[src]
impl Debug for ValueType
[src]
impl Display for ValueType
[src]
impl Eq for ValueType
[src]
impl From<LaneType> for ValueType
[src]
Create a ValueType from a given lane type.
impl From<ReferenceType> for ValueType
[src]
Create a ValueType from a given reference type.
fn from(reference: ReferenceType) -> Self
[src]
impl From<SpecialType> for ValueType
[src]
Create a ValueType from a given special type.
fn from(spec: SpecialType) -> Self
[src]
impl From<VectorType> for ValueType
[src]
Create a ValueType from a given vector type.
fn from(vector: VectorType) -> Self
[src]
impl Hash for ValueType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<TypeVar> for ValueType
[src]
impl PartialEq<ValueType> for ValueType
[src]
impl StructuralEq for ValueType
[src]
impl StructuralPartialEq for ValueType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,