Trait palette::num::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§

impl IntoScalarArray<1> for f64

source§

impl IntoScalarArray<1> for u8

source§

impl IntoScalarArray<1> for u16

source§

impl IntoScalarArray<1> for u32

source§

impl IntoScalarArray<1> for u64

source§

impl IntoScalarArray<1> for u128

source§

impl IntoScalarArray<2> for f64x2

source§

fn into_array(self) -> [f64; 2]

source§

impl IntoScalarArray<4> for f32x4

source§

fn into_array(self) -> [f32; 4]

source§

impl IntoScalarArray<4> for f64x4

source§

fn into_array(self) -> [f64; 4]

source§

impl IntoScalarArray<8> for f32x8

source§

fn into_array(self) -> [f32; 8]

Implementors§