[−][src]Struct wirefilter::ExecutionContext
An execution context stores an associated Scheme
and a
set of runtime values to execute Filter
against.
It acts as a map in terms of public API, but provides a constant-time index-based access to values for a filter during execution.
Methods
impl<'e> ExecutionContext<'e>
[src]
pub fn new<'s: 'e>(scheme: &'s Scheme) -> Self
[src]
Creates an execution context associated with a given scheme.
This scheme will be used for resolving any field names and indices.
pub fn scheme(&self) -> &'e Scheme
[src]
Returns an associated scheme.
pub fn set_field_value<'v: 'e, V: Into<LhsValue<'v>>>(
&mut self,
name: &str,
value: V
) -> Result<(), FieldValueTypeMismatchError>
[src]
&mut self,
name: &str,
value: V
) -> Result<(), FieldValueTypeMismatchError>
Sets a runtime value for a given field name.
Auto Trait Implementations
impl<'e> Send for ExecutionContext<'e>
impl<'e> Sync for ExecutionContext<'e>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,