pub enum CmfError {
FileNotFound(String),
InvalidMagic,
UnsupportedVersion(u32),
UnsupportedFeature(u32),
UnknownDtype(u8),
MissingTensor(String),
Bounds(String),
Io(Error),
Parse(String),
}Expand description
Errors from CMF operations. Every failure mode is loud.
Variants§
FileNotFound(String)
InvalidMagic
UnsupportedVersion(u32)
UnsupportedFeature(u32)
UnknownDtype(u8)
MissingTensor(String)
Bounds(String)
Io(Error)
Parse(String)
Trait Implementations§
Source§impl Error for CmfError
impl Error for CmfError
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 CmfError
impl !UnwindSafe for CmfError
impl Freeze for CmfError
impl Send for CmfError
impl Sync for CmfError
impl Unpin for CmfError
impl UnsafeUnpin for CmfError
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