pub struct Float32x4(/* private fields */);Expand description
A 128-bit SIMD vector with 4 f32 components.
Implementations§
source§impl Float32x4
impl Float32x4
sourcepub const fn new(v0: f32, v1: f32, v2: f32, v3: f32) -> Self
pub const fn new(v0: f32, v1: f32, v2: f32, v3: f32) -> Self
Create a new vector with the given components.
§Parameters
v0- the first component of the vectorv1- the second component of the vectorv2- the third component of the vectorv3- the fourth component of the vector
sourcepub const fn splat(value: f32) -> Self
pub const fn splat(value: f32) -> Self
Create a new vector with the given value in all components.
§Parameters
value- the value to set all components to
sourcepub const unsafe fn from_aligned_ptr(ptr: *const f32) -> Self
pub const unsafe fn from_aligned_ptr(ptr: *const f32) -> Self
sourcepub const unsafe fn from_unaligned_ptr(ptr: *const f32) -> Self
pub const unsafe fn from_unaligned_ptr(ptr: *const f32) -> Self
source§impl Float32x4
impl Float32x4
sourcepub fn from_slice(slice: &[f32]) -> Self
pub fn from_slice(slice: &[f32]) -> Self
sourcepub unsafe fn from_aligned_slice(slice: &[f32]) -> Self
pub unsafe fn from_aligned_slice(slice: &[f32]) -> Self
sourcepub unsafe fn from_aligned_slice_exact(slice: &[f32]) -> Self
pub unsafe fn from_aligned_slice_exact(slice: &[f32]) -> Self
sourcepub unsafe fn from_unaligned_slice_exact(slice: &[f32]) -> Self
pub unsafe fn from_unaligned_slice_exact(slice: &[f32]) -> Self
sourcepub fn from_unaligned_slice(slice: &[f32]) -> Self
pub fn from_unaligned_slice(slice: &[f32]) -> Self
sourcepub fn iter_slice(slice: &[f32]) -> impl Iterator<Item = Self> + '_
pub fn iter_slice(slice: &[f32]) -> impl Iterator<Item = Self> + '_
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Float32x4
impl RefUnwindSafe for Float32x4
impl Send for Float32x4
impl Sync for Float32x4
impl Unpin for Float32x4
impl UnwindSafe for Float32x4
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