Struct btlib::error::StringError
source · pub struct StringError(_);
Expand description
A wrapper for String
which implements std::error::Error
.
Implementations§
Trait Implementations§
source§impl AsMut<String> for StringError
impl AsMut<String> for StringError
source§impl AsRef<String> for StringError
impl AsRef<String> for StringError
source§impl Clone for StringError
impl Clone for StringError
source§fn clone(&self) -> StringError
fn clone(&self) -> StringError
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 StringError
impl Debug for StringError
source§impl<'de> Deserialize<'de> for StringError
impl<'de> Deserialize<'de> for StringError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for StringError
impl Display for StringError
source§impl Error for StringError
impl Error for StringError
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<String> for StringError
impl From<String> for StringError
source§impl From<StringError> for String
impl From<StringError> for String
source§fn from(value: StringError) -> Self
fn from(value: StringError) -> Self
Converts to this type from the input type.
source§impl Hash for StringError
impl Hash for StringError
source§impl Ord for StringError
impl Ord for StringError
source§fn cmp(&self, other: &StringError) -> Ordering
fn cmp(&self, other: &StringError) -> 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<StringError> for StringError
impl PartialEq<StringError> for StringError
source§fn eq(&self, other: &StringError) -> bool
fn eq(&self, other: &StringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StringError> for StringError
impl PartialOrd<StringError> for StringError
source§fn partial_cmp(&self, other: &StringError) -> Option<Ordering>
fn partial_cmp(&self, other: &StringError) -> 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 moresource§impl Serialize for StringError
impl Serialize for StringError
impl Eq for StringError
impl StructuralEq for StringError
impl StructuralPartialEq for StringError
Auto Trait Implementations§
impl RefUnwindSafe for StringError
impl Send for StringError
impl Sync for StringError
impl Unpin for StringError
impl UnwindSafe for StringError
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