pub(crate) enum ValueType {
Lane(LaneType),
Vector(VectorType),
DynamicVector(DynamicVectorType),
}
Expand description
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§
Implementations§
Source§impl ValueType
impl ValueType
Sourcepub fn all_lane_types() -> LaneTypeIterator ⓘ
pub fn all_lane_types() -> LaneTypeIterator ⓘ
Iterate through all of the lane types.
Sourcepub fn doc(&self) -> String
pub fn doc(&self) -> String
Return a string containing the documentation comment for this type.
Sourcepub fn lane_count(&self) -> u64
pub fn lane_count(&self) -> u64
Return the number of lanes.
Trait Implementations§
Source§impl From<DynamicVectorType> for ValueType
impl From<DynamicVectorType> for ValueType
Create a ValueType from a given dynamic vector type.
Source§fn from(vector: DynamicVectorType) -> Self
fn from(vector: DynamicVectorType) -> Self
Converts to this type from the input type.
Source§impl From<VectorType> for ValueType
impl From<VectorType> for ValueType
Create a ValueType from a given vector type.
Source§fn from(vector: VectorType) -> Self
fn from(vector: VectorType) -> Self
Converts to this type from the input type.
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)