pub enum AsciiStringError {
Undersize(UndersizeError),
Oversize(OversizeError),
InvalidChar(u8),
}Variants§
Undersize(UndersizeError)
Oversize(OversizeError)
InvalidChar(u8)
non-ASCII character ‘{0:#04}’ in ASCII-only string
Trait Implementations§
Source§impl Clone for AsciiStringError
impl Clone for AsciiStringError
Source§fn clone(&self) -> AsciiStringError
fn clone(&self) -> AsciiStringError
Returns a duplicate 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 AsciiStringError
impl Debug for AsciiStringError
Source§impl Display for AsciiStringError
impl Display for AsciiStringError
Source§impl Error for AsciiStringError
impl Error for AsciiStringError
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<AsciiStringError> for String
impl From<AsciiStringError> for String
Source§fn from(err: AsciiStringError) -> Self
fn from(err: AsciiStringError) -> Self
Converts to this type from the input type.
Source§impl From<OversizeError> for AsciiStringError
impl From<OversizeError> for AsciiStringError
Source§fn from(v: OversizeError) -> Self
fn from(v: OversizeError) -> Self
Converts to this type from the input type.
Source§impl From<UndersizeError> for AsciiStringError
impl From<UndersizeError> for AsciiStringError
Source§fn from(v: UndersizeError) -> Self
fn from(v: UndersizeError) -> Self
Converts to this type from the input type.
Source§impl Ord for AsciiStringError
impl Ord for AsciiStringError
Source§fn cmp(&self, other: &AsciiStringError) -> Ordering
fn cmp(&self, other: &AsciiStringError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AsciiStringError
impl PartialEq for AsciiStringError
Source§impl PartialOrd for AsciiStringError
impl PartialOrd for AsciiStringError
impl Copy for AsciiStringError
impl Eq for AsciiStringError
impl StructuralPartialEq for AsciiStringError
Auto Trait Implementations§
impl Freeze for AsciiStringError
impl RefUnwindSafe for AsciiStringError
impl Send for AsciiStringError
impl Sync for AsciiStringError
impl Unpin for AsciiStringError
impl UnwindSafe for AsciiStringError
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