pub enum TryFromBytesError {
StringFromBytes(FromUtf8Error),
ArrayFromSlice,
OutOfBounds,
}Variants§
Trait Implementations§
Source§impl Debug for TryFromBytesError
impl Debug for TryFromBytesError
Source§impl Display for TryFromBytesError
impl Display for TryFromBytesError
Source§impl Error for TryFromBytesError
impl Error for TryFromBytesError
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 From<FromUtf8Error> for TryFromBytesError
impl From<FromUtf8Error> for TryFromBytesError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<TryFromBytesError> for ByteReaderErrorKind
impl From<TryFromBytesError> for ByteReaderErrorKind
Source§fn from(err: TryFromBytesError) -> Self
fn from(err: TryFromBytesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TryFromBytesError
impl RefUnwindSafe for TryFromBytesError
impl Send for TryFromBytesError
impl Sync for TryFromBytesError
impl Unpin for TryFromBytesError
impl UnwindSafe for TryFromBytesError
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