[−][src]Struct fasteval::evalns::CachedCallbackNamespace
CachedCallbackNamespace
is useful when your variable/function lookups are expensive.
Each variable+args combo will only be looked up once, and then it will be cached and re-used for subsequent lookups.
Methods
impl<'a> CachedCallbackNamespace<'a>
[src]
Trait Implementations
impl<'_> Cached for CachedCallbackNamespace<'_>
[src]
fn cache_create(&mut self, name: String, val: f64) -> Result<(), Error>
[src]
fn cache_set(&mut self, name: String, val: f64)
[src]
fn cache_clear(&mut self)
[src]
impl<'_> EvalNamespace for CachedCallbackNamespace<'_>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CachedCallbackNamespace<'a>
impl<'a> !Send for CachedCallbackNamespace<'a>
impl<'a> !Sync for CachedCallbackNamespace<'a>
impl<'a> Unpin for CachedCallbackNamespace<'a>
impl<'a> !UnwindSafe for CachedCallbackNamespace<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<F> EvalNamespace for F where
F: FnMut(&str, Vec<f64>) -> Option<f64>,
[src]
F: FnMut(&str, Vec<f64>) -> Option<f64>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,