Enum gltf::image::Source[][src]

pub enum Source<'a> {
    View {
        view: View<'a>,
        mime_type: &'a str,
    },
    Uri {
        uri: &'a str,
        mime_type: Option<&'a str>,
    },
}

Describes an image data source.

Variants

Image data is contained in a buffer view.

Fields of View

The buffer view containing the encoded image data.

The image data MIME type.

Image data is contained in an external data source.

Fields of Uri

The URI of the external data source.

The image data MIME type, if provided.

Trait Implementations

impl<'a> Clone for Source<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Source<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Source<'a>

impl<'a> Sync for Source<'a>