Trait gltf_json::validation::Validate [] [src]

pub trait Validate {
    fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R)
    where
        P: Fn() -> Path,
        R: FnMut(&Fn() -> Path, Error)
, { ... }
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R)
    where
        P: Fn() -> Path,
        R: FnMut(&Fn() -> Path, Error)
, { ... } }

Trait for validating glTF JSON data against the 2.0 specification.

Provided Methods

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

Validates the data against the glTF 2.0 specification.

Notes

The caller must also call validate_minimally() for full validation.

Implementations on Foreign Types

impl<K: Eq + Hash + ToString + Validate, V: Validate> Validate for HashMap<K, V>
[src]

[src]

[src]

impl<T: Validate> Validate for Option<T>
[src]

[src]

[src]

impl<T: Validate> Validate for Vec<T>
[src]

[src]

[src]

impl Validate for bool
[src]

[src]

[src]

impl Validate for u32
[src]

[src]

[src]

impl Validate for i32
[src]

[src]

[src]

impl Validate for f32
[src]

[src]

[src]

impl Validate for [f32; 3]
[src]

[src]

[src]

impl Validate for [f32; 4]
[src]

[src]

[src]

impl Validate for [f32; 16]
[src]

[src]

[src]

impl Validate for ()
[src]

[src]

[src]

impl Validate for String
[src]

[src]

[src]

Implementors