pub struct PythonEvalPolicy { /* private fields */ }Expand description
Thin direct evaluator policy. Its profile evidence proves the codec entry and organ set.
Implementations§
Source§impl PythonEvalPolicy
impl PythonEvalPolicy
Sourcepub fn profile(&self) -> &LanguageProfile
pub fn profile(&self) -> &LanguageProfile
Profile selected by this evaluator.
Sourcepub fn eval_lowered(
&self,
lowered: &Expr,
env: &mut BTreeMap<String, PythonValue>,
) -> Result<PythonValue>
pub fn eval_lowered( &self, lowered: &Expr, env: &mut BTreeMap<String, PythonValue>, ) -> Result<PythonValue>
Evaluate one stable codec/python lowering. No compiled plan is created.
Trait Implementations§
Source§impl Clone for PythonEvalPolicy
impl Clone for PythonEvalPolicy
Source§fn clone(&self) -> PythonEvalPolicy
fn clone(&self) -> PythonEvalPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PythonEvalPolicy
impl RefUnwindSafe for PythonEvalPolicy
impl Send for PythonEvalPolicy
impl Sync for PythonEvalPolicy
impl Unpin for PythonEvalPolicy
impl UnsafeUnpin for PythonEvalPolicy
impl UnwindSafe for PythonEvalPolicy
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