pub struct Native<V> { /* private fields */ }
Expand description
A filter which is implemented using function pointers.
Implementations§
Trait Implementations§
Source§impl<V: ValT> FilterT for Native<V>
impl<V: ValT> FilterT for Native<V>
Source§fn run<'a>(&'a self, lut: &'a Lut<Self>, cv: Cv<'a, V>) -> ValXs<'a, V>
fn run<'a>(&'a self, lut: &'a Lut<Self>, cv: Cv<'a, V>) -> ValXs<'a, V>
f.run((c, v))
returns the output of v | f
in the context c
.Source§fn update<'a>(
&'a self,
lut: &'a Lut<Self>,
cv: Cv<'a, V>,
f: Box<dyn Update<'a, V> + 'a>,
) -> ValXs<'a, V>
fn update<'a>( &'a self, lut: &'a Lut<Self>, cv: Cv<'a, V>, f: Box<dyn Update<'a, V> + 'a>, ) -> ValXs<'a, V>
p.update((c, v), f)
returns the output of v | p |= f
in the context c
.Auto Trait Implementations§
impl<V> Freeze for Native<V>
impl<V> RefUnwindSafe for Native<V>
impl<V> Send for Native<V>
impl<V> Sync for Native<V>
impl<V> Unpin for Native<V>
impl<V> UnwindSafe for Native<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