[][src]Struct screen_layer::Layer

pub struct Layer { /* fields omitted */ }

Represents a layer.

Implementations

impl Layer[src]

pub fn new(top_left: Vec2<isize>, len: Vec2<usize>) -> Self[src]

Creates an instance of this struct.

top_left, len, and top_left + len can be negative, or larger than the resolution of the screen. In such cases, parts that does not fit in the screen will not be drawn.

Trait Implementations

impl Debug for Layer[src]

impl Default for Layer[src]

impl Eq for Layer[src]

impl Hash for Layer[src]

impl Index<usize> for Layer[src]

Layer can index into each pixels.

type Output = Vec<Option<RGB8>>

None represents the pixel is transparent.

impl IndexMut<usize> for Layer[src]

impl PartialEq<Layer> for Layer[src]

impl StructuralEq for Layer[src]

impl StructuralPartialEq for Layer[src]

Auto Trait Implementations

impl Send for Layer[src]

impl Sync for Layer[src]

impl Unpin for Layer[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.