pub enum TryFromBytesError {
TooLong,
Utf8Error(Utf8Error),
}
Expand description
An error returned when a conversion from a &[u8]
to a PascalString
fails.
Variants§
TooLong
The string is too long to fit into a PascalString
.
Utf8Error(Utf8Error)
The string is not valid UTF-8.
Trait Implementations§
Source§impl Clone for TryFromBytesError
impl Clone for TryFromBytesError
Source§fn clone(&self) -> TryFromBytesError
fn clone(&self) -> TryFromBytesError
Returns a copy 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 TryFromBytesError
impl Debug for TryFromBytesError
Source§impl Display for TryFromBytesError
impl Display for TryFromBytesError
Source§impl From<TryFromStrError> for TryFromBytesError
impl From<TryFromStrError> for TryFromBytesError
Source§fn from(e: TryFromStrError) -> Self
fn from(e: TryFromStrError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for TryFromBytesError
impl From<Utf8Error> for TryFromBytesError
Source§impl PartialEq for TryFromBytesError
impl PartialEq for TryFromBytesError
impl Copy for TryFromBytesError
impl Eq for TryFromBytesError
impl StructuralPartialEq for TryFromBytesError
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