Struct dimage::VecImage2
[−]
[src]
pub struct VecImage2<T> { /* fields omitted */ }
Buffered image backed by a Vec
.
Methods
impl<T> VecImage2<T>
[src]
fn blit<I>(&mut self, pt: Vec2<Coord>, src: &I) where
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>, Pixel = T>,
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>, Pixel = T>,
fn buf(&self) -> &[T]
fn buf_mut(&mut self) -> &mut [T]
fn conv_into<U>(self) -> VecImage2<U> where
T: IntoColor<U>,
T: IntoColor<U>,
fn empty() -> VecImage2<T>
fn from_buf(size: Vec2<Coord>, buf: Vec<T>) -> Result<VecImage2<T>, Vec<T>>
fn height(&self) -> Coord
fn into_buf(self) -> Vec<T>
fn row(&self, y: Coord) -> &[T]
fn row_mut(&mut self, y: Coord) -> &mut [T]
fn set_pixel(&mut self, pt: Vec2<Coord>, pixel: T)
fn size(&self) -> Vec2<Coord>
fn width(&self) -> Coord
Trait Implementations
impl<T: Clone> Clone for VecImage2<T>
[src]
fn clone(&self) -> VecImage2<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for VecImage2<T>
[src]
impl<T: Hash> Hash for VecImage2<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq> PartialEq for VecImage2<T>
[src]
fn eq(&self, __arg_0: &VecImage2<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &VecImage2<T>) -> bool
This method tests for !=
.
impl<T: Copy> Image for VecImage2<T>
[src]
type Bounds = Size2<Coord>
type Index = Vec2<Coord>
type Pixel = T
fn bounds(&self) -> &Size2<Coord>
fn pixel(&self, pt: Vec2<Coord>) -> T
impl<'a, T: 'a> Image for &'a VecImage2<T>
[src]
type Bounds = Size2<Coord>
type Index = Vec2<Coord>
type Pixel = &'a T
fn bounds(&self) -> &Size2<Coord>
fn pixel(&self, pt: Vec2<Coord>) -> &'a T
impl<T, I> RenderFrom<I> for VecImage2<T> where
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>, Pixel = T>,
[src]
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>, Pixel = T>,