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§
source§impl Clone for AsciiStringError
impl Clone for AsciiStringError
source§fn clone(&self) -> AsciiStringError
fn clone(&self) -> AsciiStringError
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 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)>
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<AsciiStringError> for AsciiStringError
impl PartialEq<AsciiStringError> for AsciiStringError
source§fn 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 ==
.source§impl PartialOrd<AsciiStringError> for AsciiStringError
impl PartialOrd<AsciiStringError> for AsciiStringError
source§fn partial_cmp(&self, other: &AsciiStringError) -> Option<Ordering>
fn partial_cmp(&self, other: &AsciiStringError) -> Option<Ordering>
1.0.0 · source§fn 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