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.
Implementations§
Trait Implementations§
source§impl Error for Reason
impl Error for Reason
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)