pub enum EncodedFixedStrError {
Utf8Error(Utf8Error),
InvalidAscii(String),
FixedStrError(String),
}Expand description
Error type for EncodedFixedStr encoding and decoding.
Variants§
Utf8Error(Utf8Error)
Error when the byte slice is not valid UTF-8.
InvalidAscii(String)
Error when the string is not valid ASCII.
FixedStrError(String)
Errors related to fixedstr::zstr.
Trait Implementations§
Source§impl Debug for EncodedFixedStrError
impl Debug for EncodedFixedStrError
Source§impl Display for EncodedFixedStrError
impl Display for EncodedFixedStrError
Source§impl Error for EncodedFixedStrError
impl Error for EncodedFixedStrError
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<EncodedFixedStrError> for MovieError
impl From<EncodedFixedStrError> for MovieError
Source§fn from(source: EncodedFixedStrError) -> Self
fn from(source: EncodedFixedStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodedFixedStrError
impl RefUnwindSafe for EncodedFixedStrError
impl Send for EncodedFixedStrError
impl Sync for EncodedFixedStrError
impl Unpin for EncodedFixedStrError
impl UnwindSafe for EncodedFixedStrError
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