#[non_exhaustive]pub enum GeometryErrorKind {
Show 15 variants
Missing,
WrongType {
expected: &'static str,
},
Complex,
ParameterCount {
expected: usize,
found: usize,
},
MissingAttribute,
NotANumber,
NotAReference,
NotAList,
NotFinite,
Dimension {
found: usize,
},
ZeroDirection,
Parallel,
OutOfRange {
value: f64,
},
UnknownEnumeration,
Unit(UnitError),
}Expand description
What is wrong with a geometry value; see GeometryError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Missing
No instance has the #id.
WrongType
Not the entity a point, direction, vector or placement must be.
Complex
A complex instance where a point, direction, vector or placement must be.
ParameterCount
A record with another number of attributes than the schema gives its entity: it does not have the layout read here.
MissingAttribute
$ where the schema requires a value.
NotANumber
Not a REAL or INTEGER token: a typed value such as
LENGTH_MEASURE(5.), a string, *, a list.
NotAReference
Not a reference.
NotAList
Not a list.
NotFinite
A number too large for an f64, as written or once converted.
Dimension
A point, direction or placement that is not 3D.
ZeroDirection
A direction whose every ratio is exactly zero (its WR1).
Parallel
A stated ref_direction parallel to the axis, to within a sine of
10⁻⁶.
OutOfRange
A value outside its range, as written: a radius not positive (a cone’s negative) or zero once converted, a negative vector magnitude, or a cone’s semi-angle outside [10⁻⁶, π/2 − 10⁻⁶] rad once converted.
UnknownEnumeration
A master_representation that is not .CURVE_3D., .PCURVE_S1.
or .PCURVE_S2..
Unit(UnitError)
A non-zero length, or a cone’s semi-angle, whose unit the context does not provide.
Trait Implementations§
Source§impl Clone for GeometryErrorKind
impl Clone for GeometryErrorKind
Source§impl Debug for GeometryErrorKind
impl Debug for GeometryErrorKind
Source§impl Display for GeometryErrorKind
impl Display for GeometryErrorKind
Source§impl PartialEq for GeometryErrorKind
impl PartialEq for GeometryErrorKind
Source§impl Serialize for GeometryErrorKind
Available on crate feature serde only.
impl Serialize for GeometryErrorKind
serde only.