pub enum SpaceError {
Io {
path: String,
source: Error,
},
Parse {
path: String,
source: Box<Error>,
},
Invalid(String),
Constraint {
expr: String,
reason: String,
},
}Expand description
What can go wrong loading a spec or enumerating its space.
Variants§
Io
kernel.toml could not be read.
Parse
kernel.toml is not valid TOML.
Fields
Invalid(String)
The TOML parsed but does not describe a usable space: a bad dimension name, an empty or duplicated value list, a block axis above the CUDA limit, or no dimensions at all.
Constraint
A [constraints] expression could not be parsed or evaluated —
including arithmetic that would overflow or divide by zero, which
is an error rather than a verdict.
Trait Implementations§
Source§impl Debug for SpaceError
impl Debug for SpaceError
Source§impl Display for SpaceError
impl Display for SpaceError
Source§impl Error for SpaceError
impl Error for SpaceError
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 !RefUnwindSafe for SpaceError
impl !UnwindSafe for SpaceError
impl Freeze for SpaceError
impl Send for SpaceError
impl Sync for SpaceError
impl Unpin for SpaceError
impl UnsafeUnpin for SpaceError
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