pub struct ErasedTupleOps;Expand description
Tuple constructor and projector for erased expressions.
Implementations§
Source§impl ErasedTupleOps
impl ErasedTupleOps
Sourcepub fn make_pair(a: ErasedExprExt, b: ErasedExprExt) -> ErasedExprExt
pub fn make_pair(a: ErasedExprExt, b: ErasedExprExt) -> ErasedExprExt
Construct a pair (2-tuple).
Sourcepub fn fst(pair: ErasedExprExt) -> ErasedExprExt
pub fn fst(pair: ErasedExprExt) -> ErasedExprExt
First projection (fst) application.
Sourcepub fn snd(pair: ErasedExprExt) -> ErasedExprExt
pub fn snd(pair: ErasedExprExt) -> ErasedExprExt
Second projection (snd) application.
Sourcepub fn n_tuple(exprs: Vec<ErasedExprExt>) -> ErasedExprExt
pub fn n_tuple(exprs: Vec<ErasedExprExt>) -> ErasedExprExt
Construct an n-tuple by nesting pairs.
Auto Trait Implementations§
impl Freeze for ErasedTupleOps
impl RefUnwindSafe for ErasedTupleOps
impl Send for ErasedTupleOps
impl Sync for ErasedTupleOps
impl Unpin for ErasedTupleOps
impl UnsafeUnpin for ErasedTupleOps
impl UnwindSafe for ErasedTupleOps
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