pub enum V2FormatError {
InvalidMagic([u8; 4]),
InvalidHeader(String),
InvalidTensorIndex(String),
MetadataError(String),
ChecksumMismatch,
AlignmentError(String),
IoError(String),
CompressionError(String),
}Expand description
APR v2 format error
Variants§
InvalidMagic([u8; 4])
Invalid magic number
InvalidHeader(String)
Invalid header
InvalidTensorIndex(String)
Invalid tensor index
MetadataError(String)
Metadata error
ChecksumMismatch
Checksum mismatch
AlignmentError(String)
Alignment error
IoError(String)
I/O error
CompressionError(String)
Compression error
Trait Implementations§
Source§impl Clone for V2FormatError
impl Clone for V2FormatError
Source§fn clone(&self) -> V2FormatError
fn clone(&self) -> V2FormatError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for V2FormatError
impl Debug for V2FormatError
Source§impl Display for V2FormatError
impl Display for V2FormatError
Source§impl Error for V2FormatError
impl Error for V2FormatError
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()
Source§impl PartialEq for V2FormatError
impl PartialEq for V2FormatError
impl StructuralPartialEq for V2FormatError
Auto Trait Implementations§
impl Freeze for V2FormatError
impl RefUnwindSafe for V2FormatError
impl Send for V2FormatError
impl Sync for V2FormatError
impl Unpin for V2FormatError
impl UnsafeUnpin for V2FormatError
impl UnwindSafe for V2FormatError
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> 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>
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