palette::num

Trait IntoScalarArray

source
pub trait IntoScalarArray<const N: usize>: FromScalar {
    // Required method
    fn into_array(self) -> [Self::Scalar; N];
}
Expand description

Conversion from a vectorized value to an array of scalars.

Required Methods§

source

fn into_array(self) -> [Self::Scalar; N]

Creates an array of scalars from a vectorized value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoScalarArray<1> for f32

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for f64

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for u8

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for u16

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for u32

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for u64

source§

fn into_array(self) -> [Self; 1]

source§

impl IntoScalarArray<1> for u128

source§

fn into_array(self) -> [Self; 1]

Implementors§