[][src]Trait ytesrev::image::ImageContainer

pub trait ImageContainer: KnownSize + Sized {
    fn get_data(&self) -> &Vec<u8>;
fn get_data_mut(&mut self) -> &mut Vec<u8>;
fn into_data(self) -> Vec<u8>; fn as_knownsize(&self) -> &dyn KnownSize { ... } }

Something that can act as, or contains, an image.

Required methods

fn get_data(&self) -> &Vec<u8>

Retrieve the data in the image

fn get_data_mut(&mut self) -> &mut Vec<u8>

Retrieve the data in the image, mutably

fn into_data(self) -> Vec<u8>

Retrieve the data in the image, consuming the object

Loading content...

Provided methods

fn as_knownsize(&self) -> &dyn KnownSize

Convert the object to a dynamic KnownSize object, as rust doesn't support calling KnownSize -methods directly on this object

Loading content...

Implementors

impl ImageContainer for PngImage[src]

impl ImageContainer for LatexObj[src]

impl<T: ImageContainer + KnownSize> ImageContainer for Ditherer<T>[src]

Loading content...