pub enum RhsChild {
Term(RhsTerm),
TermMult {
term: RhsTerm,
mult: MultExpr,
span: Span,
},
Splice(String, Span),
SetComp {
body: Box<RhsTerm>,
var: String,
source: String,
filter: Option<Box<RhsTerm>>,
span: Span,
},
MsetComp {
body: Box<RhsTerm>,
mult: MultExpr,
var: String,
mult_var: String,
source: String,
filter: Option<Box<RhsTerm>>,
span: Span,
},
SeqComp {
body: Box<RhsTerm>,
var: String,
source: String,
filter: Option<Box<RhsTerm>>,
span: Span,
},
}Variants§
Term(RhsTerm)
TermMult
term:mult under a variadic op — the term contributed mult times.
Multiplicity 0 omits the term (the k−1 = 0 case of a multiplicity variant).
Splice(String, Span)
..name — splice rest variable contents.
SetComp
..{body for v in source [if guard]} — set comprehension.
MsetComp
..{body:mult for v:k in source [if guard]} — multiset comprehension.
Fields
SeqComp
..[body for v in source [if guard]] — sequence comprehension.
Trait Implementations§
impl Eq for RhsChild
impl StructuralPartialEq for RhsChild
Auto Trait Implementations§
impl Freeze for RhsChild
impl RefUnwindSafe for RhsChild
impl Send for RhsChild
impl Sync for RhsChild
impl Unpin for RhsChild
impl UnsafeUnpin for RhsChild
impl UnwindSafe for RhsChild
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.