[][src]Struct cairo::MappedImageSurface

pub struct MappedImageSurface { /* fields omitted */ }

Methods from Deref<Target = ImageSurface>

pub fn with_data<F: FnOnce(&[u8])>(&self, f: F) -> Result<(), BorrowError>[src]

Call the provided function with access to the pixel data of this image.

Unlike get_data, this can succeed even if there is a Context referencing this image.

pub fn get_format(&self) -> Format[src]

pub fn get_height(&self) -> i32[src]

pub fn get_stride(&self) -> i32[src]

pub fn get_width(&self) -> i32[src]

pub fn write_to_png<W: Write>(&self, stream: &mut W) -> Result<(), IoError>[src]

Trait Implementations

impl Debug for MappedImageSurface[src]

impl Deref for MappedImageSurface[src]

type Target = ImageSurface

The resulting type after dereferencing.

impl Display for MappedImageSurface[src]

impl Drop for MappedImageSurface[src]

Auto Trait Implementations

impl RefUnwindSafe for MappedImageSurface

impl !Send for MappedImageSurface

impl !Sync for MappedImageSurface

impl Unpin for MappedImageSurface

impl UnwindSafe for MappedImageSurface

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.