pub enum HybridMethodCoupleError<Error1, Error2> {
ErrorFirst(Error1),
ErrorSecond(Error2),
}
Expand description
Error given by HybridMethodCouple
Variants§
Trait Implementations§
source§impl<Error1: Clone, Error2: Clone> Clone for HybridMethodCoupleError<Error1, Error2>
impl<Error1: Clone, Error2: Clone> Clone for HybridMethodCoupleError<Error1, Error2>
source§fn clone(&self) -> HybridMethodCoupleError<Error1, Error2>
fn clone(&self) -> HybridMethodCoupleError<Error1, Error2>
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<'de, Error1, Error2> Deserialize<'de> for HybridMethodCoupleError<Error1, Error2>where
Error1: Deserialize<'de>,
Error2: Deserialize<'de>,
impl<'de, Error1, Error2> Deserialize<'de> for HybridMethodCoupleError<Error1, Error2>where Error1: Deserialize<'de>, Error2: Deserialize<'de>,
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<Error1: Display + Error + 'static, Error2: Display + Error + 'static> Error for HybridMethodCoupleError<Error1, Error2>
impl<Error1: Display + Error + 'static, Error2: Display + Error + 'static> Error for HybridMethodCoupleError<Error1, Error2>
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<Error1: PartialEq, Error2: PartialEq> PartialEq<HybridMethodCoupleError<Error1, Error2>> for HybridMethodCoupleError<Error1, Error2>
impl<Error1: PartialEq, Error2: PartialEq> PartialEq<HybridMethodCoupleError<Error1, Error2>> for HybridMethodCoupleError<Error1, Error2>
source§fn eq(&self, other: &HybridMethodCoupleError<Error1, Error2>) -> bool
fn eq(&self, other: &HybridMethodCoupleError<Error1, Error2>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Error1, Error2> Serialize for HybridMethodCoupleError<Error1, Error2>where
Error1: Serialize,
Error2: Serialize,
impl<Error1, Error2> Serialize for HybridMethodCoupleError<Error1, Error2>where Error1: Serialize, Error2: Serialize,
impl<Error1: Copy, Error2: Copy> Copy for HybridMethodCoupleError<Error1, Error2>
impl<Error1: Eq, Error2: Eq> Eq for HybridMethodCoupleError<Error1, Error2>
impl<Error1, Error2> StructuralEq for HybridMethodCoupleError<Error1, Error2>
impl<Error1, Error2> StructuralPartialEq for HybridMethodCoupleError<Error1, Error2>
Auto Trait Implementations§
impl<Error1, Error2> RefUnwindSafe for HybridMethodCoupleError<Error1, Error2>where Error1: RefUnwindSafe, Error2: RefUnwindSafe,
impl<Error1, Error2> Send for HybridMethodCoupleError<Error1, Error2>where Error1: Send, Error2: Send,
impl<Error1, Error2> Sync for HybridMethodCoupleError<Error1, Error2>where Error1: Sync, Error2: Sync,
impl<Error1, Error2> Unpin for HybridMethodCoupleError<Error1, Error2>where Error1: Unpin, Error2: Unpin,
impl<Error1, Error2> UnwindSafe for HybridMethodCoupleError<Error1, Error2>where Error1: UnwindSafe, Error2: UnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.