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