pub struct EvalContext { /* private fields */ }Implementations§
Source§impl EvalContext
impl EvalContext
pub fn new() -> Self
pub fn insert_series(&mut self, series: Series)
pub fn from_dataframe(frame: &DataFrame) -> Result<Self, ExprError>
pub fn from_dataframe_with_locals( frame: &DataFrame, locals: &BTreeMap<String, Scalar>, ) -> Result<Self, ExprError>
pub fn get_series(&self, name: &str) -> Option<&Series>
pub fn insert_local(&mut self, name: impl Into<String>, value: Scalar)
pub fn get_local(&self, name: &str) -> Option<&Scalar>
Trait Implementations§
Source§impl Clone for EvalContext
impl Clone for EvalContext
Source§impl Debug for EvalContext
impl Debug for EvalContext
Auto Trait Implementations§
impl !Freeze for EvalContext
impl !RefUnwindSafe for EvalContext
impl !UnwindSafe for EvalContext
impl Send for EvalContext
impl Sync for EvalContext
impl Unpin for EvalContext
impl UnsafeUnpin for EvalContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more