Trait nannou::ui::backend::glium::glium::texture::Texture2dDataSource
[−]
[src]
pub trait Texture2dDataSource<'a> { type Data: 'a + Send + Copy + Clone; fn into_raw(self) -> RawImage2d<'a, Self::Data>; }
Trait that describes data for a two-dimensional texture.
Associated Types
Required Methods
fn into_raw(self) -> RawImage2d<'a, Self::Data>
Returns the raw representation of the data.
Implementations on Foreign Types
impl<'a, P> Texture2dDataSource<'a> for Vec<Vec<P>> where
P: PixelValue + Clone,
[src]
P: PixelValue + Clone,
type Data = P
fn into_raw(self) -> RawImage2d<'a, P>
[src]
Implementors
impl<'a, P> Texture2dDataSource<'a> for RawImage2d<'a, P> where
P: PixelValue + Clone, type Data = P;