pub struct VectorWidth {
pub scalar: Scalar,
pub lanes: u32,
pub register_bits: u32,
}Expand description
Vector width specification for a SIMD operation.
Fields§
§scalar: ScalarScalar element type.
lanes: u32Number of SIMD lanes.
register_bits: u32Register width in bits.
Implementations§
Source§impl VectorWidth
impl VectorWidth
Sourcepub fn for_register_width(scalar: Scalar, register_bits: u32) -> Self
pub fn for_register_width(scalar: Scalar, register_bits: u32) -> Self
Compute the number of lanes that fit in a register of the given bit width.
Trait Implementations§
Source§impl Clone for VectorWidth
impl Clone for VectorWidth
Source§fn clone(&self) -> VectorWidth
fn clone(&self) -> VectorWidth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VectorWidth
impl Debug for VectorWidth
Source§impl Display for VectorWidth
impl Display for VectorWidth
impl Eq for VectorWidth
Source§impl PartialEq for VectorWidth
impl PartialEq for VectorWidth
impl StructuralPartialEq for VectorWidth
Auto Trait Implementations§
impl Freeze for VectorWidth
impl RefUnwindSafe for VectorWidth
impl Send for VectorWidth
impl Sync for VectorWidth
impl Unpin for VectorWidth
impl UnsafeUnpin for VectorWidth
impl UnwindSafe for VectorWidth
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