Struct gltf::json::root::Index
[−]
[src]
pub struct Index<T>(_, _);
Represents an offset into an array of type T
owned by the root glTF object.
Methods
impl<T> Index<T>
[src]
Trait Implementations
impl<T: Clone> Clone for Index<T>
[src]
fn clone(&self) -> Index<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Index<T>
[src]
impl<T> Serialize for Index<T>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de, T> Deserialize<'de> for Index<T>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Debug for Index<T>
[src]
impl<T> Display for Index<T>
[src]
impl<T: Validate> Validate for Index<T> where
Root: Get<T>,
[src]
Root: Get<T>,
fn validate_minimally<P, R>(&self, root: &Root, path: P, report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&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(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification.