pub struct Prod<A, B>(/* private fields */);Expand description
Lean’s α × β as a pair.
Implementations§
Trait Implementations§
Source§impl<A: Codec, B: Codec> Codec for Prod<A, B>
impl<A: Codec, B: Codec> Codec for Prod<A, B>
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<A, B> Forget for Prod<A, B>
impl<A, B> Freeze for Prod<A, B>
impl<A, B> Move for Prod<A, B>
impl<A, B> RefUnwindSafe for Prod<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Prod<A, B>
impl<A, B> Sync for Prod<A, B>
impl<A, B> Unpin for Prod<A, B>
impl<A, B> UnsafeUnpin for Prod<A, B>
impl<A, B> UnwindSafe for Prod<A, B>where
A: UnwindSafe,
B: 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