pub struct EvalConfig {
pub max_steps: u64,
pub max_depth: u32,
pub max_list_len: usize,
}Expand description
Configuration for the expression evaluator.
Fields§
§max_steps: u64Maximum number of reduction steps before aborting.
max_depth: u32Maximum recursion depth before aborting.
max_list_len: usizeMaximum list length for operations that produce lists.
Trait Implementations§
Source§impl Clone for EvalConfig
impl Clone for EvalConfig
Source§fn clone(&self) -> EvalConfig
fn clone(&self) -> EvalConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvalConfig
impl Debug for EvalConfig
Source§impl Default for EvalConfig
impl Default for EvalConfig
Source§impl<'de> Deserialize<'de> for EvalConfig
impl<'de> Deserialize<'de> for EvalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EvalConfig
impl RefUnwindSafe for EvalConfig
impl Send for EvalConfig
impl Sync for EvalConfig
impl Unpin for EvalConfig
impl UnsafeUnpin for EvalConfig
impl UnwindSafe for EvalConfig
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