pub enum QuantError {
UnsupportedBitWidth(u8),
DimensionMismatch {
expected: usize,
got: usize,
},
Format(String),
Io(Error),
}Expand description
Errors specific to quantization operations.
Variants§
Trait Implementations§
Source§impl Debug for QuantError
impl Debug for QuantError
Source§impl Display for QuantError
impl Display for QuantError
Source§impl Error for QuantError
impl Error for QuantError
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 Freeze for QuantError
impl !RefUnwindSafe for QuantError
impl Send for QuantError
impl Sync for QuantError
impl Unpin for QuantError
impl UnsafeUnpin for QuantError
impl !UnwindSafe for QuantError
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