[][src]Trait shine_gltf::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, H: BuildHasher> Validate for HashMap<K, V, H>[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 shine_gltf::accessor::sparse::Indices[src]

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

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

impl Validate for shine_gltf::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 shine_gltf::animation::Sampler[src]

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

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

impl Validate for shine_gltf::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 shine_gltf::buffer::View[src]

impl Validate for shine_gltf::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 shine_gltf::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 shine_gltf::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 shine_gltf::extensions::accessor::sparse::Indices[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl Validate for shine_gltf::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 shine_gltf::material::Material[src]

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

impl Validate for shine_gltf::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 shine_gltf::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 shine_gltf::mesh::Mesh[src]

impl Validate for MorphTarget[src]

impl Validate for shine_gltf::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 shine_gltf::root::Root[src]

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

impl Validate for shine_gltf::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 shine_gltf::skin::Skin[src]

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

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

impl Validate for shine_gltf::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...