pub struct Except<E, A>(/* private fields */);Expand description
Lean’s Except ε α as a Result. Lean names the error type first, Rust the value type.
Trait Implementations§
Source§impl<E: Codec, A: Codec> Codec for Except<E, A>
impl<E: Codec, A: Codec> Codec for Except<E, A>
Source§fn into_lean(value: Self::Rust) -> Value<Self>
fn into_lean(value: Self::Rust) -> Value<Self>
The Lean value of a Rust value that is given up. What can move is moved.
Source§fn to_lean(value: &Self::Rust) -> Value<Self>
fn to_lean(value: &Self::Rust) -> Value<Self>
The Lean value of a Rust value that stays with the caller. A copy.
Auto Trait Implementations§
impl<E, A> Forget for Except<E, A>
impl<E, A> Freeze for Except<E, A>
impl<E, A> Move for Except<E, A>
impl<E, A> RefUnwindSafe for Except<E, A>where
E: RefUnwindSafe,
A: RefUnwindSafe,
impl<E, A> Send for Except<E, A>
impl<E, A> Sync for Except<E, A>
impl<E, A> Unpin for Except<E, A>
impl<E, A> UnsafeUnpin for Except<E, A>
impl<E, A> UnwindSafe for Except<E, A>where
E: UnwindSafe,
A: UnwindSafe,
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