FallibleContext
imply FallibleCtx
This commit is contained in:
parent
58a2cd3ca6
commit
7c1fc8bacd
@ -10,7 +10,7 @@ use super::*;
|
|||||||
///
|
///
|
||||||
/// Until either Rust type system or [`crate::func`] take serious changes,
|
/// Until either Rust type system or [`crate::func`] take serious changes,
|
||||||
/// this is the preferred way to switch between [Wrapped] and [fallible].
|
/// this is the preferred way to switch between [Wrapped] and [fallible].
|
||||||
pub trait FallibleContext<'a>: Context<'a> {
|
pub trait FallibleContext<'a>: FallibleCtx<'a> {
|
||||||
/// Convert a fallible wrapped into a wrapped result.
|
/// Convert a fallible wrapped into a wrapped result.
|
||||||
fn unstuff<A: 'a, E: 'a>(wa: FallibleWrapped<'a, Self, A, E>) -> WrapC<'a, Result<A, E>, Self> {
|
fn unstuff<A: 'a, E: 'a>(wa: FallibleWrapped<'a, Self, A, E>) -> WrapC<'a, Result<A, E>, Self> {
|
||||||
<Self as FallibleCtx<'a>>::Fallible::unstuff(wa)
|
<Self as FallibleCtx<'a>>::Fallible::unstuff(wa)
|
||||||
|
Loading…
Reference in New Issue
Block a user