Trait vrl::Vec4fBase

source ·
pub trait Vec4fBase: SIMDBase<4> + SIMDFloat {
    // Required method
    fn new(v0: f32, v1: f32, v2: f32, v3: f32) -> Self;
}
Expand description

Base trait for Vec4f: a SIMD vector with four elements of type f32.

Required Methods§

source

fn new(v0: f32, v1: f32, v2: f32, v3: f32) -> Self

Initializes elements of returned vector with given values.

§Example
assert_eq!(
    Vec4f::new(1.0, 2.0, 3.0, 4.0),
    [1.0, 2.0, 3.0, 4.0].into()
);

Object Safety§

This trait is not object safe.

Implementors§