Struct jaq_interpret::Filter
source · pub struct Filter(/* private fields */);Expand description
Function from a value to a stream of value results.
Trait Implementations§
source§impl<'a> FilterT<'a> for &'a Owned
impl<'a> FilterT<'a> for &'a Owned
source§fn run(self, cv: (Ctx<'a>, Val)) -> ValRs<'a>
fn run(self, cv: (Ctx<'a>, Val)) -> ValRs<'a>
f.run((c, v)) returns the output of v | f in the context c.source§fn update(self, cv: (Ctx<'a>, Val), f: Box<dyn Update<'a> + 'a>) -> ValRs<'a>
fn update(self, cv: (Ctx<'a>, Val), f: Box<dyn Update<'a> + 'a>) -> ValRs<'a>
p.update((c, v), f) returns the output of v | p |= f in the context c.source§fn pipe<T: 'a, F>(self, cv: (Ctx<'a>, Val), f: F) -> Results<'a, T, Error>where
F: Fn((Ctx<'a>, Val), Val) -> Results<'a, T, Error> + 'a,
fn pipe<T: 'a, F>(self, cv: (Ctx<'a>, Val), f: F) -> Results<'a, T, Error>where F: Fn((Ctx<'a>, Val), Val) -> Results<'a, T, Error> + 'a,
source§fn cartesian(
self,
r: Self,
cv: (Ctx<'a>, Val)
) -> Box<dyn Iterator<Item = (ValR, ValR)> + 'a>
fn cartesian( self, r: Self, cv: (Ctx<'a>, Val) ) -> Box<dyn Iterator<Item = (ValR, ValR)> + 'a>
Run
self and r and return the cartesian product of their outputs.source§fn cartesian3(
self,
m: Self,
r: Self,
cv: (Ctx<'a>, Val)
) -> Box<dyn Iterator<Item = (ValR, ValR, ValR)> + 'a>
fn cartesian3( self, m: Self, r: Self, cv: (Ctx<'a>, Val) ) -> Box<dyn Iterator<Item = (ValR, ValR, ValR)> + 'a>
Run
self, m, and r, and return the cartesian product of their outputs.Auto Trait Implementations§
impl RefUnwindSafe for Owned
impl Send for Owned
impl Sync for Owned
impl Unpin for Owned
impl UnwindSafe for Owned
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