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 Clone for Owned

source§

fn clone(&self) -> Owned

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Owned

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for Owned

source§

fn default() -> Owned

Returns the “default value” for a type. Read more
source§

impl<'a> FilterT<'a> for &'a Owned

source§

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>

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,

For every value v returned by self.run(cv), call f(cv, v) and return all results. Read more
source§

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 recurse(self, inner: bool, outer: bool, cv: (Ctx<'a>, Val)) -> ValRs<'_>

Return the output of recurse(f) if inner and outer are true. Read more
source§

fn recurse_update( self, cv: (Ctx<'a>, Val), f: Box<dyn Update<'a> + 'a> ) -> ValRs<'a>

Return the output of recurse(l) |= f.

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.