pub enum PascalStringCreateError {
InputTooLong,
NotValidAscii(AsciiError),
}
Expand description
Indicates the range of errors which can occur from creating a new PascalString
.
Variants§
InputTooLong
The data provided to the constructor was larger than the PascalString
could store.
NotValidAscii(AsciiError)
The data provided was not correctly encoded as ascii.
Trait Implementations§
Source§impl Debug for PascalStringCreateError
impl Debug for PascalStringCreateError
Source§impl Display for PascalStringCreateError
impl Display for PascalStringCreateError
Source§impl Error for PascalStringCreateError
impl Error for PascalStringCreateError
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<E: Into<AsciiError>> From<E> for PascalStringCreateError
impl<E: Into<AsciiError>> From<E> for PascalStringCreateError
Source§impl PartialEq for PascalStringCreateError
impl PartialEq for PascalStringCreateError
impl StructuralPartialEq for PascalStringCreateError
Auto Trait Implementations§
impl Freeze for PascalStringCreateError
impl RefUnwindSafe for PascalStringCreateError
impl Send for PascalStringCreateError
impl Sync for PascalStringCreateError
impl Unpin for PascalStringCreateError
impl UnwindSafe for PascalStringCreateError
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