[][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]

impl Debug for ImageData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.