pub enum ModelDefect {
Show 15 variants
NotJson,
BadContainer,
NotGltf,
UnsupportedVersion,
ExternalResource,
UnsupportedEncoding,
SparseAccessor,
UnsupportedPrimitive,
UnsupportedComponentType,
UnsupportedAccessorType,
MissingPositions,
DanglingIndex,
TruncatedBuffer,
IndexOutOfRange,
EmptyScene,
}Expand description
Why a document is not one this reader will draw.
Each variant is a code rather than a sentence, because the sentence a
reader sees is the host’s to write and this crate holds no English outside
crate::strings.
Variants§
NotJson
The bytes are not JSON, or not a JSON object.
BadContainer
The GLB header, its declared length, or a chunk length is wrong.
NotGltf
There is no asset.version, so this is not a glTF document.
UnsupportedVersion
The document declares a glTF major version other than 2.
ExternalResource
A buffer points somewhere this crate would have to fetch.
UnsupportedEncoding
A data: URI that is not base64, or base64 that will not decode.
SparseAccessor
A sparse accessor, which substitutes values this reader does not read.
UnsupportedPrimitive
A primitive that is not a triangle list.
UnsupportedComponentType
An accessor component type this reader does not read.
UnsupportedAccessorType
An accessor whose element type is not the one the attribute requires.
MissingPositions
A primitive with no POSITION, which has no geometry to draw.
DanglingIndex
An index into accessors, buffer views, buffers, meshes, or nodes that the document does not contain.
TruncatedBuffer
An accessor that reads past the end of the bytes it was given.
IndexOutOfRange
An index that names a vertex the primitive does not have.
EmptyScene
A document that parsed and contains no triangle to draw.
Implementations§
Trait Implementations§
Source§impl Clone for ModelDefect
impl Clone for ModelDefect
Source§fn clone(&self) -> ModelDefect
fn clone(&self) -> ModelDefect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ModelDefect
Source§impl Debug for ModelDefect
impl Debug for ModelDefect
impl Eq for ModelDefect
Source§impl PartialEq for ModelDefect
impl PartialEq for ModelDefect
impl StructuralPartialEq for ModelDefect
Auto Trait Implementations§
impl Freeze for ModelDefect
impl RefUnwindSafe for ModelDefect
impl Send for ModelDefect
impl Sync for ModelDefect
impl Unpin for ModelDefect
impl UnsafeUnpin for ModelDefect
impl UnwindSafe for ModelDefect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more