pub trait Texture1dDataSource<'a> {
    type Data: Send + Copy + Clone + 'a;

    // Required method
    fn into_raw(self) -> RawImage1d<'a, Self::Data>;
}
Expand description

Trait that describes data for a one-dimensional texture.

Required Associated Types§

source

type Data: Send + Copy + Clone + 'a

The type of each pixel.

Required Methods§

source

fn into_raw(self) -> RawImage1d<'a, Self::Data>

Returns the raw representation of the data.

Implementations on Foreign Types§

source§

impl<'a, P> Texture1dDataSource<'a> for &'a [P]where P: Copy + Clone + Send + 'static + PixelValue,

§

type Data = P

source§

fn into_raw(self) -> RawImage1d<'a, P>

source§

impl<'a, P> Texture1dDataSource<'a> for Vec<P>where P: Copy + Clone + Send + 'static + PixelValue,

§

type Data = P

source§

fn into_raw(self) -> RawImage1d<'a, P>

Implementors§

source§

impl<'a, P: PixelValue + Clone> Texture1dDataSource<'a> for RawImage1d<'a, P>

§

type Data = P