Skip to main content

RhsArg

Enum RhsArg 

Source
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.

Fields

§body: Box<RhsOp<O, V>>
§

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.

Fields

§body: Box<RhsOp<O, V>>
§source: SetVarId
§filter: Option<Box<RhsOp<O, V>>>
§

MsetComp

Multiset comprehension: map body over mset rest, with output multiplicity.

Fields

§body: Box<RhsOp<O, V>>
§source: MsetVarId
§filter: Option<Box<RhsOp<O, V>>>
§

SeqComp

Sequence comprehension: map body over seq rest.

Fields

§body: Box<RhsOp<O, V>>
§source: SeqVarId
§filter: Option<Box<RhsOp<O, V>>>

Trait Implementations§

Source§

impl<O: Clone, V: Clone> Clone for RhsArg<O, V>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<O: Debug, V: Debug> Debug for RhsArg<O, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<O, V> Freeze for RhsArg<O, V>
where RhsOp<O, V>: Freeze, Box<RhsOp<O, V>>: Freeze, Option<Box<RhsOp<O, V>>>: Freeze,

§

impl<O, V> RefUnwindSafe for RhsArg<O, V>

§

impl<O, V> Send for RhsArg<O, V>
where RhsOp<O, V>: Send, Box<RhsOp<O, V>>: Send, Option<Box<RhsOp<O, V>>>: Send,

§

impl<O, V> Sync for RhsArg<O, V>
where RhsOp<O, V>: Sync, Box<RhsOp<O, V>>: Sync, Option<Box<RhsOp<O, V>>>: Sync,

§

impl<O, V> Unpin for RhsArg<O, V>
where RhsOp<O, V>: Unpin, Box<RhsOp<O, V>>: Unpin, Option<Box<RhsOp<O, V>>>: Unpin,

§

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>
where RhsOp<O, V>: UnwindSafe, Box<RhsOp<O, V>>: UnwindSafe, Option<Box<RhsOp<O, V>>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.