[][src]Struct wirefilter::ExecutionContext

pub struct ExecutionContext<'e> { /* fields omitted */ }

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]

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]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]