[][src]Struct fasteval::evalns::EmptyNamespace

pub struct EmptyNamespace;

Use EmptyNamespace when you know that you won't be looking up any variables.

It is a zero-sized type, which means it gets optimized-away at compile time.

See module-level documentation for example.

Trait Implementations

impl EvalNamespace for EmptyNamespace[src]

fn lookup(
    &mut self,
    _name: &str,
    _args: Vec<f64>,
    _keybuf: &mut String
) -> Option<f64>
[src]

Always returns None, indicating that the variable is undefined.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<F> EvalNamespace for F where
    F: FnMut(&str, Vec<f64>) -> Option<f64>, 
[src]

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.