[][src]Struct lyon_extra::image::MutableImageSlice

pub struct MutableImageSlice<'l, Pixel: Copy + 'static> {
    pub width: usize,
    pub height: usize,
    pub stride: usize,
    pub pixels: &'l mut [Pixel],
}

A view on a writable image in memory.

Fields

width: usizeheight: usizestride: usizepixels: &'l mut [Pixel]

Methods

impl<'l, Pixel: Copy + 'static> MutableImageSlice<'l, Pixel>[src]

pub fn new(
    width: usize,
    height: usize,
    pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
[src]

pub fn with_stride(
    width: usize,
    height: usize,
    stride: usize,
    pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
[src]

pub fn pixel_offset(&self, x: usize, y: usize) -> usize[src]

pub fn contains_pixel(&self, x: usize, y: usize) -> bool[src]

pub fn split_vertically(
    &'l mut self,
    at: usize
) -> (MutableImageSlice<'l, Pixel>, MutableImageSlice<'l, Pixel>)
[src]

Auto Trait Implementations

impl<'l, Pixel> Send for MutableImageSlice<'l, Pixel> where
    Pixel: Send

impl<'l, Pixel> Sync for MutableImageSlice<'l, Pixel> where
    Pixel: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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