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

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

Trait for validating glTF JSON data against the 2.0 specification.

Provided methods

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 

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

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 

Validates the data against the glTF 2.0 specification.

Notes

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

Loading content...

Implementations on Foreign Types

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

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

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

impl Validate for bool[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for u32[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for i32[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for f32[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for [f32; 3][src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for [f32; 4][src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for [f32; 16][src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for ()[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for String[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

Loading content...

Implementors

impl Validate for Value[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::accessor::sparse::Indices[src]

impl Validate for gltf_json::accessor::sparse::Sparse[src]

impl Validate for gltf_json::accessor::sparse::Values[src]

impl Validate for gltf_json::accessor::Accessor[src]

impl Validate for Animation[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::animation::Sampler[src]

impl Validate for gltf_json::animation::Target[src]

impl Validate for gltf_json::asset::Asset[src]

impl Validate for gltf_json::buffer::Buffer[src]

impl Validate for ByteStride[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::buffer::View[src]

impl Validate for gltf_json::camera::Camera[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::camera::Orthographic[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::camera::Perspective[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::extensions::accessor::sparse::Indices[src]

impl Validate for gltf_json::extensions::accessor::sparse::Sparse[src]

impl Validate for gltf_json::extensions::accessor::sparse::Values[src]

impl Validate for gltf_json::extensions::accessor::Accessor[src]

impl Validate for gltf_json::extensions::animation::Sampler[src]

impl Validate for gltf_json::extensions::animation::Target[src]

impl Validate for gltf_json::extensions::asset::Asset[src]

impl Validate for gltf_json::extensions::buffer::Buffer[src]

impl Validate for gltf_json::extensions::buffer::View[src]

impl Validate for gltf_json::extensions::camera::Camera[src]

impl Validate for gltf_json::extensions::camera::Orthographic[src]

impl Validate for gltf_json::extensions::camera::Perspective[src]

impl Validate for gltf_json::extensions::image::Image[src]

impl Validate for gltf_json::extensions::material::Material[src]

impl Validate for gltf_json::extensions::material::NormalTexture[src]

impl Validate for gltf_json::extensions::material::OcclusionTexture[src]

impl Validate for gltf_json::extensions::material::PbrMetallicRoughness[src]

impl Validate for gltf_json::extensions::mesh::Mesh[src]

impl Validate for gltf_json::extensions::mesh::Primitive[src]

impl Validate for gltf_json::extensions::root::Root[src]

impl Validate for gltf_json::extensions::scene::Node[src]

impl Validate for gltf_json::extensions::scene::Scene[src]

impl Validate for gltf_json::extensions::skin::Skin[src]

impl Validate for gltf_json::extensions::texture::Info[src]

impl Validate for gltf_json::extensions::texture::Sampler[src]

impl Validate for gltf_json::extensions::texture::Texture[src]

impl Validate for Void[src]

impl Validate for gltf_json::image::Image[src]

impl Validate for MimeType[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for AlphaCutoff[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for EmissiveFactor[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::material::Material[src]

impl Validate for gltf_json::material::NormalTexture[src]

impl Validate for gltf_json::material::OcclusionTexture[src]

impl Validate for PbrBaseColorFactor[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::material::PbrMetallicRoughness[src]

impl Validate for StrengthFactor[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::mesh::Mesh[src]

impl Validate for MorphTarget[src]

impl Validate for gltf_json::mesh::Primitive[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::root::Root[src]

impl Validate for gltf_json::scene::Node[src]

impl Validate for gltf_json::scene::Scene[src]

impl Validate for UnitQuaternion[src]

fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl Validate for gltf_json::skin::Skin[src]

impl Validate for gltf_json::texture::Info[src]

impl Validate for gltf_json::texture::Sampler[src]

impl Validate for gltf_json::texture::Texture[src]

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

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

impl<T: Validate> Validate for Index<T> where
    Root: Get<T>, 
[src]

fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
    P: Fn() -> Path,
    R: FnMut(&dyn Fn() -> Path, Error), 
[src]

Loading content...