pub struct PEConfig {
pub max_depth: usize,
pub inline_lets: bool,
pub prune_branches: bool,
pub fold_arithmetic: bool,
pub fold_logic: bool,
}Expand description
Configuration governing which reductions are attempted during partial evaluation.
Fields§
§max_depth: usizeMaximum recursion depth before the evaluator stops descending.
inline_lets: boolIf true, inline Let bindings whose bound expression reduces to a concrete value.
prune_branches: boolIf true, prune dead branches in logical operators when one operand is
a known boolean constant.
fold_arithmetic: boolIf true, fold arithmetic operations when both operands are concrete.
fold_logic: boolIf true, fold logical operations on known boolean operands.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PEConfig
impl RefUnwindSafe for PEConfig
impl Send for PEConfig
impl Sync for PEConfig
impl Unpin for PEConfig
impl UnsafeUnpin for PEConfig
impl UnwindSafe for PEConfig
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