pub struct Error<S = ()> { /* private fields */ }
Implementations§
§impl<S> Error<S>
impl<S> Error<S>
pub fn name(&self) -> Cow<'_, str>
pub fn summary(&self) -> Option<Cow<'_, str>>
pub fn human(&self) -> Option<String>
pub fn detail(&self) -> Option<Cow<'_, str>>
pub fn inner(&self) -> SmallVec<[&Error<()>; 1]> ⓘ
pub fn into_scope<T>(self) -> Error<T>
pub fn as_scope<T>(&self) -> &Error<T>
pub fn back_cast<T>(self) -> Result<T, Error<S>>where
T: 'static + Send + Sync,
pub fn back_cast_ref<T>(&self) -> Option<&T>where
T: 'static + Send + Sync,
pub fn is_name_of<T>(&self) -> boolwhere
T: 'static + Send + Sync + Default,
S: Scope,
pub fn name_of<T>() -> Option<String>where
T: 'static + Send + Sync + Default,
S: Scope,
Trait Implementations§
§impl<'a, X> Deserialize<'a> for Error<X>
impl<'a, X> Deserialize<'a> for Error<X>
§fn deserialize<D>(
deserializer: D
) -> Result<Error<X>, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
fn deserialize<D>(
deserializer: D
) -> Result<Error<X>, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
§impl<S> Error for Error<S>
impl<S> Error for Error<S>
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()
§impl<X> Serialize for Error<X>
impl<X> Serialize for Error<X>
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<S> Eq for Error<S>
Auto Trait Implementations§
impl<S = ()> !RefUnwindSafe for Error<S>
impl<S> Send for Error<S>where
S: Send,
impl<S> Sync for Error<S>where
S: Sync,
impl<S = ()> !Unpin for Error<S>
impl<S = ()> !UnwindSafe for Error<S>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.