Enum gilrs::ff::DistanceModelError
[−]
[src]
pub enum DistanceModelError { InvalidReferenceDistance, InvalidRolloffFactor, InvalidMaxDistance, InvalidModelParameter, // some variants omitted }
Error that can be returned when passing DistanceModel
with
invalid value.
Variants
InvalidReferenceDistance
Reference distance is < 0.
InvalidRolloffFactor
Rolloff factor is < 0.
InvalidMaxDistance
Max distance is < 0.
InvalidModelParameter
Possible divide by zero
Trait Implementations
impl Copy for DistanceModelError
[src]
impl Clone for DistanceModelError
[src]
fn clone(&self) -> DistanceModelError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DistanceModelError
[src]
impl PartialEq for DistanceModelError
[src]
fn eq(&self, __arg_0: &DistanceModelError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Error for DistanceModelError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more