pub enum ZeroFormatterError {
IoError(Error),
FromUtf8Error(FromUtf8Error),
InvalidBinary(u64),
}
Variants§
Implementations§
Source§impl ZeroFormatterError
impl ZeroFormatterError
pub fn invalid_binary<T>(offset: u64) -> ZeroFormatterResult<T>
Trait Implementations§
Source§impl Debug for ZeroFormatterError
impl Debug for ZeroFormatterError
Source§impl Display for ZeroFormatterError
impl Display for ZeroFormatterError
Source§impl Error for ZeroFormatterError
impl Error for ZeroFormatterError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for ZeroFormatterError
impl From<Error> for ZeroFormatterError
Source§impl From<FromUtf8Error> for ZeroFormatterError
impl From<FromUtf8Error> for ZeroFormatterError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ZeroFormatterError> for Error
impl From<ZeroFormatterError> for Error
Source§fn from(err: ZeroFormatterError) -> Self
fn from(err: ZeroFormatterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZeroFormatterError
impl !RefUnwindSafe for ZeroFormatterError
impl Send for ZeroFormatterError
impl Sync for ZeroFormatterError
impl Unpin for ZeroFormatterError
impl !UnwindSafe for ZeroFormatterError
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