[go: up one dir, main page]

Enum gltf::image::Data [] [src]

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

The data referenced by an Image.

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

Auto Trait Implementations

impl<'a> Send for Data<'a>

impl<'a> Sync for Data<'a>