pub enum RhsArg<O, V> {
One(RhsOp<O, V>),
OneMult {
body: Box<RhsOp<O, V>>,
mult: ResolvedMultExpr,
},
SpliceSeq(SeqVarId),
SpliceSet(SetVarId),
SpliceMset(MsetVarId),
SetComp {
body: Box<RhsOp<O, V>>,
var: RhsLocalVarId,
source: SetVarId,
filter: Option<Box<RhsOp<O, V>>>,
},
MsetComp {
body: Box<RhsOp<O, V>>,
mult: ResolvedMultExpr,
var: RhsLocalVarId,
mult_var: RhsLocalMultVarId,
source: MsetVarId,
filter: Option<Box<RhsOp<O, V>>>,
},
SeqComp {
body: Box<RhsOp<O, V>>,
var: RhsLocalVarId,
source: SeqVarId,
filter: Option<Box<RhsOp<O, V>>>,
},
}Expand description
An argument to App — produces one or many children.
Variants§
One(RhsOp<O, V>)
Single child.
OneMult
One child contributed mult times (variadic ops only). Multiplicity 0
omits the child without evaluating it, so nothing is materialized.
SpliceSeq(SeqVarId)
Splice sequence rest into children.
SpliceSet(SetVarId)
Splice set rest into children.
SpliceMset(MsetVarId)
Splice multiset rest into children (each element repeated by its multiplicity).
SetComp
Set comprehension: map body over set rest.
MsetComp
Multiset comprehension: map body over mset rest, with output multiplicity.
SeqComp
Sequence comprehension: map body over seq rest.
Trait Implementations§
Auto Trait Implementations§
impl<O, V> Freeze for RhsArg<O, V>
impl<O, V> RefUnwindSafe for RhsArg<O, V>where
RhsOp<O, V>: RefUnwindSafe,
Box<RhsOp<O, V>>: RefUnwindSafe,
Option<Box<RhsOp<O, V>>>: RefUnwindSafe,
impl<O, V> Send for RhsArg<O, V>
impl<O, V> Sync for RhsArg<O, V>
impl<O, V> Unpin for RhsArg<O, V>
impl<O, V> UnsafeUnpin for RhsArg<O, V>where
RhsOp<O, V>: UnsafeUnpin,
Box<RhsOp<O, V>>: UnsafeUnpin,
Option<Box<RhsOp<O, V>>>: UnsafeUnpin,
impl<O, V> UnwindSafe for RhsArg<O, V>
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