pub enum Reason {
Show 16 variants
NotFinite,
NotGreaterThanZero,
NotUnitVector([f64; 3], f64),
NotOrthogonal([f64; 3], [f64; 3]),
OctreeNotPowerOfTwo([u32; 3]),
GridTooLarge(Vec<u64>),
AttrLocationWrongForGeom(Location, &'static str),
AttrLocationWrongForAttr(Location, &'static str),
AttrLengthMismatch(u64, u64),
MinMaxOutOfOrder(NumberRange),
InvalidData(InvalidData),
ZipMemberMissing(String),
NotUnique(String),
SoftNotUnique(String),
MoreErrors(u32),
MoreWarnings(u32),
}
Expand description
Validation failure reason.
Variants§
NotFinite
A floating-point number is NaN, Inf, or -Inf.
NotGreaterThanZero
A size is zero or less.
NotUnitVector([f64; 3], f64)
Vector must have length one.
NotOrthogonal([f64; 3], [f64; 3])
Vectors must be at right angles.
OctreeNotPowerOfTwo([u32; 3])
A sub-blocked model says it uses octree mode but the sub-block counts are not powers of two.
GridTooLarge(Vec<u64>)
A grid or block model has size greater than 2³² in any direction.
AttrLocationWrongForGeom(Location, &'static str)
Attribute using a location that doesn’t exist on the containing geometry.
AttrLocationWrongForAttr(Location, &'static str)
Attribute using a location that is impossible for the attribute data.
AttrLengthMismatch(u64, u64)
Attribute length doesn’t match the geometry and location.
MinMaxOutOfOrder(NumberRange)
Minimum is greater than maximum.
InvalidData(InvalidData)
The data inside an array is invalid.
ZipMemberMissing(String)
A data file or index is missing from the zip.
NotUnique(String)
A field that must be unique is duplicated.
SoftNotUnique(String)
A field that should be unique is duplicated.
MoreErrors(u32)
Ran into the validation message limit.
MoreWarnings(u32)
Ran into the validation message limit.