pub(crate) struct DynamicVectorType {
base: LaneType,
unscaled_lanes: u64,
}
Expand description
A concrete dynamic SIMD vector type.
A vector type has a lane type which is an instance of LaneType
,
and a positive number of lanes.
Fields§
§base: LaneType
§unscaled_lanes: u64
Implementations§
Source§impl DynamicVectorType
impl DynamicVectorType
Sourcepub fn new(base: LaneType, unscaled_lanes: u64) -> Self
pub fn new(base: LaneType, unscaled_lanes: u64) -> Self
Initialize a new type with base
lane type and a minimum number of lanes.
Sourcepub fn doc(&self) -> String
pub fn doc(&self) -> String
Return a string containing the documentation comment for this vector type.
Sourcepub fn minimum_lane_count(&self) -> u64
pub fn minimum_lane_count(&self) -> u64
Return the number of lanes.
Sourcepub fn number(&self) -> u16
pub fn number(&self) -> u16
Find the unique number associated with this vector type.
Dynamic vector types are encoded in the same manner as VectorType
,
with lane type in the low 4 bits and the log2(lane_count). We add the
VECTOR_BASE
to move these numbers into the range beyond the fixed
SIMD types.
Trait Implementations§
Source§impl Clone for DynamicVectorType
impl Clone for DynamicVectorType
Source§fn clone(&self) -> DynamicVectorType
fn clone(&self) -> DynamicVectorType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DynamicVectorType
impl Debug for DynamicVectorType
Source§impl Display for DynamicVectorType
impl Display for DynamicVectorType
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 Hash for DynamicVectorType
impl Hash for DynamicVectorType
Source§impl PartialEq for DynamicVectorType
impl PartialEq for DynamicVectorType
impl Eq for DynamicVectorType
impl StructuralPartialEq for DynamicVectorType
Auto Trait Implementations§
impl Freeze for DynamicVectorType
impl RefUnwindSafe for DynamicVectorType
impl Send for DynamicVectorType
impl Sync for DynamicVectorType
impl Unpin for DynamicVectorType
impl UnwindSafe for DynamicVectorType
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