[−][src]Struct screen_layer::Layer
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Index<usize> for Layer[src]
Layer can index into each pixels.
type Output = Vec<Option<RGB8>>
None represents the pixel is transparent.
pub fn index(&self, index: usize) -> &Self::Output[src]
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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,