[][src]Enum usvg::ImageData

pub enum ImageData {
    Path(PathBuf),
    Raw(Vec<u8>),
}

A raster image container.

Variants

Path(PathBuf)

Path to a PNG, JPEG or SVG(Z) image.

Preprocessor will check that the file exist, but because it can be removed later, so there is no guarantee that this path is valid.

The path may be relative.

Raw(Vec<u8>)

Image raw data.

It's not a decoded image data, but the data that was decoded from base64. So you still need a PNG, JPEG and SVG(Z) decoding libraries.

Trait Implementations

impl Clone for ImageData[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ImageData[src]

Auto Trait Implementations

impl Send for ImageData

impl Sync for ImageData

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

The type returned in the event of a conversion error.