Enum gltf_json::validation::Checked []

pub enum Checked<T> {
    Valid(T),
    Invalid,
}

Specifies a type that has been pre-validated during deserialization or otherwise.

Variants

The item is valid.

The item is invalid.

Methods

impl<T> Checked<T>

Converts from Checked<T> to Checked<&T>.

Takes ownership of the contained item if it is Valid.

Panics

Panics if called on an Invalid item.

Trait Implementations

impl<'de> Deserialize<'de> for Checked<GenericComponentType>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<IndexComponentType>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<Type>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<InterpolationAlgorithm>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<TrsProperty>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<Target>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<Type>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<AlphaMode>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<Mode>

Deserialize this value from the given Serde deserializer. Read more

impl ToString for Checked<Semantic>

Converts the given value to a String. Read more

impl<'de> Deserialize<'de> for Checked<Semantic>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<MagFilter>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<MinFilter>

Deserialize this value from the given Serde deserializer. Read more

impl<'de> Deserialize<'de> for Checked<WrappingMode>

Deserialize this value from the given Serde deserializer. Read more

impl<T: Debug> Debug for Checked<T>

Formats the value using the given formatter.

impl<T: Eq> Eq for Checked<T>

impl<T: Hash> Hash for Checked<T>

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialEq> PartialEq for Checked<T>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Clone> Clone for Checked<T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Checked<T>

impl<T: Default> Default for Checked<T>

Returns the "default value" for a type. Read more

impl<T> Validate for Checked<T>

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.