Enum stens::AsciiStringError
source · [−]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
sourceimpl Clone for AsciiStringError
impl Clone for AsciiStringError
sourcefn clone(&self) -> AsciiStringError
fn clone(&self) -> AsciiStringError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AsciiStringError
impl Debug for AsciiStringError
sourceimpl Display for AsciiStringError
impl Display for AsciiStringError
sourceimpl Error for AsciiStringError
impl Error for AsciiStringError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<AsciiStringError> for String
impl From<AsciiStringError> for String
sourcefn from(err: AsciiStringError) -> Self
fn from(err: AsciiStringError) -> Self
Converts to this type from the input type.
sourceimpl From<OversizeError> for AsciiStringError
impl From<OversizeError> for AsciiStringError
sourcefn from(v: OversizeError) -> Self
fn from(v: OversizeError) -> Self
Converts to this type from the input type.
sourceimpl From<UndersizeError> for AsciiStringError
impl From<UndersizeError> for AsciiStringError
sourcefn from(v: UndersizeError) -> Self
fn from(v: UndersizeError) -> Self
Converts to this type from the input type.
sourceimpl Ord for AsciiStringError
impl Ord for AsciiStringError
sourceimpl PartialEq<AsciiStringError> for AsciiStringError
impl PartialEq<AsciiStringError> for AsciiStringError
sourcefn eq(&self, other: &AsciiStringError) -> bool
fn eq(&self, other: &AsciiStringError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AsciiStringError) -> bool
fn ne(&self, other: &AsciiStringError) -> bool
This method tests for !=.
sourceimpl PartialOrd<AsciiStringError> for AsciiStringError
impl PartialOrd<AsciiStringError> for AsciiStringError
sourcefn partial_cmp(&self, other: &AsciiStringError) -> Option<Ordering>
fn partial_cmp(&self, other: &AsciiStringError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for AsciiStringError
impl Eq for AsciiStringError
impl StructuralEq for AsciiStringError
impl StructuralPartialEq for AsciiStringError
Auto Trait Implementations
impl RefUnwindSafe for AsciiStringError
impl Send for AsciiStringError
impl Sync for AsciiStringError
impl Unpin for AsciiStringError
impl UnwindSafe for AsciiStringError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more