pub struct Fun {
pub code: Core,
pub captures: Vec<OpId>,
}Expand description
A function an operator applies per element, closed over the plan nodes it reads.
The captures are why this is not simply a Core lambda: lambda t: t.owner == session.actor
reads the session, which is a node — so the operator has to be re-run wholesale when a capture
changes, and per element when only the collection changed. Both are expressible only if the
captured nodes are named.
Fields§
§code: CoreLam over the captured nodes’ variables followed by the element.
captures: Vec<OpId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fun
impl RefUnwindSafe for Fun
impl Send for Fun
impl Sync for Fun
impl Unpin for Fun
impl UnwindSafe for Fun
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