Enum constriction::CoderError [−][src]
pub enum CoderError<FrontendError, BackendError> { Frontend(FrontendError), Backend(BackendError), }
Variants
Implementations
impl<FrontendError, BackendError> CoderError<FrontendError, BackendError>
[src]
impl<FrontendError, BackendError> CoderError<FrontendError, BackendError>
[src]pub fn map_frontend<E>(
self,
f: impl Fn(FrontendError) -> E
) -> CoderError<E, BackendError>
[src]
self,
f: impl Fn(FrontendError) -> E
) -> CoderError<E, BackendError>
pub fn map_backend<E>(
self,
f: impl Fn(BackendError) -> E
) -> CoderError<FrontendError, E>
[src]
self,
f: impl Fn(BackendError) -> E
) -> CoderError<FrontendError, E>
Trait Implementations
impl<FrontendError: Clone, BackendError: Clone> Clone for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError: Clone, BackendError: Clone> Clone for CoderError<FrontendError, BackendError>
[src]fn clone(&self) -> CoderError<FrontendError, BackendError>
[src]
fn clone(&self) -> CoderError<FrontendError, BackendError>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<FrontendError: Debug, BackendError: Debug> Debug for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError: Debug, BackendError: Debug> Debug for CoderError<FrontendError, BackendError>
[src]impl<BackendError: Display, FrontendError: Display> Display for CoderError<FrontendError, BackendError>
[src]
impl<BackendError: Display, FrontendError: Display> Display for CoderError<FrontendError, BackendError>
[src]impl<FrontendError: Error + 'static, BackendError: Error + 'static> Error for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError: Error + 'static, BackendError: Error + 'static> Error for CoderError<FrontendError, BackendError>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl<FrontendError, BackendError> From<BackendError> for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError, BackendError> From<BackendError> for CoderError<FrontendError, BackendError>
[src]impl<FrontendError: PartialEq, BackendError: PartialEq> PartialEq<CoderError<FrontendError, BackendError>> for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError: PartialEq, BackendError: PartialEq> PartialEq<CoderError<FrontendError, BackendError>> for CoderError<FrontendError, BackendError>
[src]fn eq(&self, other: &CoderError<FrontendError, BackendError>) -> bool
[src]
fn eq(&self, other: &CoderError<FrontendError, BackendError>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CoderError<FrontendError, BackendError>) -> bool
[src]
fn ne(&self, other: &CoderError<FrontendError, BackendError>) -> bool
[src]This method tests for !=
.
impl<FrontendError: Eq, BackendError: Eq> Eq for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError, BackendError> StructuralEq for CoderError<FrontendError, BackendError>
[src]
impl<FrontendError, BackendError> StructuralPartialEq for CoderError<FrontendError, BackendError>
[src]
Auto Trait Implementations
impl<FrontendError, BackendError> RefUnwindSafe for CoderError<FrontendError, BackendError> where
BackendError: RefUnwindSafe,
FrontendError: RefUnwindSafe,
BackendError: RefUnwindSafe,
FrontendError: RefUnwindSafe,
impl<FrontendError, BackendError> Send for CoderError<FrontendError, BackendError> where
BackendError: Send,
FrontendError: Send,
BackendError: Send,
FrontendError: Send,
impl<FrontendError, BackendError> Sync for CoderError<FrontendError, BackendError> where
BackendError: Sync,
FrontendError: Sync,
BackendError: Sync,
FrontendError: Sync,
impl<FrontendError, BackendError> Unpin for CoderError<FrontendError, BackendError> where
BackendError: Unpin,
FrontendError: Unpin,
BackendError: Unpin,
FrontendError: Unpin,
impl<FrontendError, BackendError> UnwindSafe for CoderError<FrontendError, BackendError> where
BackendError: UnwindSafe,
FrontendError: UnwindSafe,
BackendError: UnwindSafe,
FrontendError: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more