#[non_exhaustive]pub enum IrithyllError {
InvalidConfig(ConfigError),
InsufficientData(String),
DimensionMismatch {
expected: usize,
got: usize,
},
NotTrained,
}Available on crate feature
alloc only.Expand description
Top-level error type for the irithyll crate.
Requires the alloc feature for String fields.
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.
InvalidConfig(ConfigError)
Configuration validation failed.
InsufficientData(String)
Not enough data to perform the requested operation.
DimensionMismatch
Feature dimension mismatch between sample and model.
NotTrained
Model has not been trained yet.
Trait Implementations§
Source§impl Debug for IrithyllError
impl Debug for IrithyllError
Source§impl Display for IrithyllError
impl Display for IrithyllError
Source§impl From<ConfigError> for IrithyllError
impl From<ConfigError> for IrithyllError
Source§fn from(e: ConfigError) -> Self
fn from(e: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IrithyllError
impl RefUnwindSafe for IrithyllError
impl Send for IrithyllError
impl Sync for IrithyllError
impl Unpin for IrithyllError
impl UnsafeUnpin for IrithyllError
impl UnwindSafe for IrithyllError
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
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>
Converts
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>
Converts
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