pub trait Validate {
    // Provided method
    fn validate<P, R>(&self, _root: &Root, _path: P, _report: &mut R)
       where P: Fn() -> Path,
             R: FnMut(&dyn Fn() -> Path, Error) { ... }
}
Expand description

Trait for validating glTF JSON data so that the library can function without panicking.

Provided Methods§

source

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

Validates the invariants required for the library to function safely.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Validate for bool

source§

impl Validate for f32

source§

impl Validate for i32

source§

impl Validate for u32

source§

impl Validate for ()

source§

impl Validate for Map<String, Value>

source§

fn validate<P, R>(&self, root: &Root, path: P, report: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

source§

impl Validate for Box<RawValue>

source§

fn validate<P, R>(&self, _: &Root, _: P, _: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

source§

impl Validate for String

source§

impl Validate for [f32; 3]

source§

impl Validate for [f32; 4]

source§

impl Validate for [f32; 16]

source§

impl<K: ToString + Validate, V: Validate> Validate for BTreeMap<K, V>

source§

fn validate<P, R>(&self, root: &Root, path: P, report: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

source§

impl<T: Validate> Validate for Option<T>

source§

fn validate<P, R>(&self, root: &Root, path: P, report: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

source§

impl<T: Validate> Validate for Vec<T>

source§

fn validate<P, R>(&self, root: &Root, path: P, report: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

Implementors§

source§

impl Validate for Value

source§

impl Validate for gltf_json::accessor::sparse::Indices

source§

impl Validate for gltf_json::accessor::sparse::Sparse

source§

impl Validate for gltf_json::accessor::sparse::Values

source§

impl Validate for gltf_json::animation::Sampler

source§

impl Validate for gltf_json::animation::Target

source§

impl Validate for Stride

source§

impl Validate for gltf_json::buffer::View

source§

impl Validate for gltf_json::camera::Orthographic

source§

impl Validate for gltf_json::camera::Perspective

source§

impl Validate for gltf_json::extensions::accessor::sparse::Indices

source§

impl Validate for gltf_json::extensions::accessor::sparse::Sparse

source§

impl Validate for gltf_json::extensions::accessor::sparse::Values

source§

impl Validate for gltf_json::extensions::accessor::Accessor

source§

impl Validate for gltf_json::extensions::animation::Sampler

source§

impl Validate for gltf_json::extensions::animation::Target

source§

impl Validate for gltf_json::extensions::asset::Asset

source§

impl Validate for gltf_json::extensions::buffer::Buffer

source§

impl Validate for gltf_json::extensions::buffer::View

source§

impl Validate for gltf_json::extensions::camera::Camera

source§

impl Validate for gltf_json::extensions::camera::Orthographic

source§

impl Validate for gltf_json::extensions::camera::Perspective

source§

impl Validate for gltf_json::extensions::image::Image

source§

impl Validate for AttenuationColor

source§

impl Validate for AttenuationDistance

source§

impl Validate for EmissiveStrength

source§

impl Validate for EmissiveStrengthFactor

source§

impl Validate for IndexOfRefraction

source§

impl Validate for Ior

source§

impl Validate for gltf_json::extensions::material::Material

source§

impl Validate for gltf_json::extensions::material::NormalTexture

source§

impl Validate for gltf_json::extensions::material::OcclusionTexture

source§

impl Validate for gltf_json::extensions::material::PbrMetallicRoughness

source§

impl Validate for ThicknessFactor

source§

impl Validate for Transmission

source§

impl Validate for TransmissionFactor

source§

impl Validate for Unlit

source§

impl Validate for Volume

source§

impl Validate for gltf_json::extensions::mesh::Mesh

source§

impl Validate for gltf_json::extensions::mesh::Primitive

source§

impl Validate for gltf_json::extensions::root::KhrLightsPunctual

source§

impl Validate for gltf_json::extensions::root::Root

source§

impl Validate for gltf_json::extensions::scene::khr_lights_punctual::KhrLightsPunctual

source§

impl Validate for Light

source§

impl Validate for Spot

source§

impl Validate for gltf_json::extensions::scene::Node

source§

impl Validate for gltf_json::extensions::scene::Scene

source§

impl Validate for gltf_json::extensions::skin::Skin

source§

impl Validate for gltf_json::extensions::texture::Info

source§

impl Validate for gltf_json::extensions::texture::Sampler

source§

impl Validate for gltf_json::extensions::texture::Texture

source§

impl Validate for Void

source§

impl Validate for MimeType

source§

impl Validate for AlphaCutoff

source§

impl Validate for EmissiveFactor

source§

impl Validate for gltf_json::material::NormalTexture

source§

impl Validate for gltf_json::material::OcclusionTexture

source§

impl Validate for PbrBaseColorFactor

source§

impl Validate for gltf_json::material::PbrMetallicRoughness

source§

impl Validate for StrengthFactor

source§

impl Validate for MorphTarget

source§

impl Validate for gltf_json::mesh::Primitive

source§

impl Validate for UnitQuaternion

source§

impl Validate for gltf_json::Accessor

source§

impl Validate for Animation

source§

impl Validate for gltf_json::Asset

source§

impl Validate for gltf_json::Buffer

source§

impl Validate for gltf_json::Camera

source§

impl Validate for gltf_json::Image

source§

impl Validate for gltf_json::Material

source§

impl Validate for gltf_json::Mesh

source§

impl Validate for gltf_json::Node

source§

impl Validate for gltf_json::Root

source§

impl Validate for gltf_json::Scene

source§

impl Validate for gltf_json::Skin

source§

impl Validate for gltf_json::Texture

source§

impl Validate for gltf_json::texture::Info

source§

impl Validate for gltf_json::texture::Sampler

source§

impl Validate for USize64

source§

impl<T> Validate for Checked<T>

source§

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