pub enum Error<const D: usize> {
InvalidBoxSize {
value: f64,
box_size: Vec<f64>,
},
InvalidRmin(f64),
GenCoordOutOfBounds([f64; D]),
InvalidActiveList,
}Expand description
Errors encountered when sampling coordinates.
Variants§
InvalidBoxSize
Invalid input box size to sample coordinates in.
All box size lengths must be positive, real values.
InvalidRmin(f64)
Invalid input minimum distance between coordinates.
Minimum distance must be a positive, real value. This will also be yielded for infinite and not-a-number values.
GenCoordOutOfBounds([f64; D])
Generated a coordinate that was outside the box.
This should not happen. Please file an issue if you encounter this.
InvalidActiveList
The active list is inconsistent.
This should not happen. Please file an issue if you encounter this.
Trait Implementations§
Source§impl<const D: usize> Error for Error<D>
impl<const D: usize> Error for Error<D>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<const D: usize> Freeze for Error<D>
impl<const D: usize> RefUnwindSafe for Error<D>
impl<const D: usize> Send for Error<D>
impl<const D: usize> Sync for Error<D>
impl<const D: usize> Unpin for Error<D>
impl<const D: usize> UnwindSafe for Error<D>
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
Mutably borrows from an owned value. Read more