Trait palette::num::FromScalarArray
source · pub trait FromScalarArray<const N: usize>: FromScalar {
// Required method
fn from_array(scalars: [Self::Scalar; N]) -> Self;
}
Expand description
Conversion from an array of scalars to a vectorized value.
Required Methods§
sourcefn from_array(scalars: [Self::Scalar; N]) -> Self
fn from_array(scalars: [Self::Scalar; N]) -> Self
Creates a vectorized value from an array of scalars.
Object Safety§
This trait is not object safe.