Enum gilrs::ff::DistanceModelError [−][src]
#[non_exhaustive]
pub enum DistanceModelError {
InvalidReferenceDistance,
InvalidRolloffFactor,
InvalidMaxDistance,
InvalidModelParameter,
}
Expand description
Error that can be returned when passing DistanceModel
with
invalid value.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidReferenceDistance
Reference distance is < 0.
InvalidRolloffFactor
Rolloff factor is < 0.
InvalidMaxDistance
Max distance is < 0.
InvalidModelParameter
Possible divide by zero
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DistanceModelError
impl Send for DistanceModelError
impl Sync for DistanceModelError
impl Unpin for DistanceModelError
impl UnwindSafe for DistanceModelError
Blanket Implementations
Mutably borrows from an owned value. Read more