pub enum Error {
Show 19 variants
ZeroK,
BadBox,
Empty,
BufferSize,
Overflow,
MaskLen,
TooManyCells,
BadCutoff,
TooManyImages,
Partial,
Device,
Padded,
NonFinite,
BadPartition,
BadGraph,
NoDevice,
DeviceMismatch,
ScotchDisabled,
ScotchFailed,
}Expand description
Why a search could not run.
Variants§
ZeroK
k == 0.
BadBox
A box length is not strictly positive, or H is singular.
Empty
n == 0 or the point list is empty. Not a buffer-size mismatch.
BufferSize
Caller out length is not n * k.
Overflow
n * k does not fit a slice (usize or isize).
MaskLen
mask is Some and its length is not n.
TooManyCells
Linked-cell mesh would overflow or exceed the bin cap.
BadCutoff
cutoff is not finite and strictly positive.
TooManyImages
Periodic image stencil exceeds the 2^24 resource cap.
Partial
An axis is not periodic and libvesin.so is not loaded.
Device
The device is not the CPU and libvesin.so is not loaded.
Padded
A point has more neighbours than the requested pad.
NonFinite
A coordinate is not finite.
BadPartition
The part count is zero, or the balance bound is below one.
BadGraph
The cell graph is not a square CSR of that grid.
NoDevice
A device curve split was requested and no device is loaded.
DeviceMismatch
The device curve split disagreed with the host weights.
ScotchDisabled
Scotch support was not compiled in.
ScotchFailed
The Scotch library rejected the graph.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more