Struct rhai::Limits [−][src]
pub struct Limits {
pub max_call_stack_depth: usize,
pub max_expr_depth: usize,
pub max_function_expr_depth: usize,
pub max_operations: u64,
pub max_modules: usize,
pub max_string_size: usize,
pub max_array_size: usize,
pub max_map_size: usize,
}
Expand description
[INTERNALS] A type containing all the limits imposed by the Engine
.
Exported under the internals
feature only.
WARNING
This type is volatile and may change.
Fields
max_call_stack_depth: usize
Maximum levels of call-stack to prevent infinite recursion.
Defaults to 16 for debug builds and 128 for non-debug builds.
max_expr_depth: usize
Maximum depth of statements/expressions at global level.
max_function_expr_depth: usize
Maximum depth of statements/expressions in functions.
max_operations: u64
Maximum number of operations allowed to run.
max_modules: usize
Maximum number of modules allowed to load.
max_string_size: usize
Maximum length of a string.
max_array_size: usize
Maximum length of an array.
max_map_size: usize
Maximum number of properties in a map.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Limits
impl UnwindSafe for Limits
Blanket Implementations
Mutably borrows from an owned value. Read more