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

Valid(T)

The item is valid.

Invalid

The item is invalid.

Methods

impl<T> Checked<T>[src]

pub fn as_ref(&self) -> Checked<&T>[src]

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

pub fn unwrap(self) -> T[src]

Takes ownership of the contained item if it is Valid.

Panics

Panics if called on an Invalid item.

Trait Implementations

impl<T> Validate for Checked<T>[src]

impl<T: Copy> Copy for Checked<T>[src]

impl<T: Default> Default for Checked<T>[src]

impl<T: Clone> Clone for Checked<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq<Checked<T>> for Checked<T>[src]

impl ToString for Checked<Semantic>[src]

impl<T: Eq> Eq for Checked<T>[src]

impl<T: Debug> Debug for Checked<T>[src]

impl<T: Hash> Hash for Checked<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

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

impl<T: Serialize> Serialize for Checked<T>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<T> Sync for Checked<T> where
    T: Sync

impl<T> Unpin for Checked<T> where
    T: Unpin

impl<T> Send for Checked<T> where
    T: Send

impl<T> UnwindSafe for Checked<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Checked<T> where
    T: RefUnwindSafe

Blanket Implementations

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> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]