pub struct Floatx4(/* private fields */);Implementations§
source§impl Floatx4
impl Floatx4
sourcepub const fn from_array(array: [Float; 4]) -> Self
pub const fn from_array(array: [Float; 4]) -> Self
Created from array.
sourcepub fn from_scalar(f: Float) -> Self
pub fn from_scalar(f: Float) -> Self
Created from a single element.
pub fn sum(self) -> Float
pub fn array(&self) -> &[Float; 4]
pub fn mut_array(&mut self) -> &mut [Float; 4]
pub fn iter(&self) -> Iter<'_, Float>
pub fn copy_from_slice(slice: &[Float]) -> Self
Trait Implementations§
source§impl AddAssign for Floatx4
impl AddAssign for Floatx4
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl DivAssign for Floatx4
impl DivAssign for Floatx4
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moresource§impl IntoIterator for Floatx4
impl IntoIterator for Floatx4
source§impl MulAssign for Floatx4
impl MulAssign for Floatx4
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl SubAssign for Floatx4
impl SubAssign for Floatx4
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Floatx4
Auto Trait Implementations§
impl Freeze for Floatx4
impl RefUnwindSafe for Floatx4
impl Send for Floatx4
impl Sync for Floatx4
impl Unpin for Floatx4
impl UnwindSafe for Floatx4
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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)