Struct gltf::Unvalidated
[−]
[src]
pub struct Unvalidated(_);
Represents glTF that hasn't been validated yet.
Methods
impl Unvalidated[src]
pub fn as_json(&self) -> &Root[src]
Returns the unvalidated JSON.
pub fn skip_validation(self) -> Gltf[src]
Skip validation. Using this is highly recommended against as malformed glTF assets might lead to program panics, huge values, NaNs and general evil deeds.
Panics
This function does not panic, but might cause an inherent panic later in your program during reading of the malformed asset.
pub fn validate_minimally(self) -> Result<Gltf, Error>[src]
Validates only the invariants required for the library to function safely.
pub fn validate_completely(self) -> Result<Gltf, Error>[src]
Validates the data against the glTF 2.0 specification.