pub struct WhnfConfig {
pub beta: bool,
pub zeta: bool,
pub delta: bool,
pub iota: bool,
pub max_steps: u64,
}Expand description
Configuration flags for the WHNF reducer.
Fields§
§beta: boolWhether to apply beta reductions.
zeta: boolWhether to apply zeta (let) reductions.
delta: boolWhether to unfold definitions (delta).
iota: boolWhether to apply iota (recursor) reductions.
max_steps: u64Maximum reduction steps (0 = unlimited).
Implementations§
Source§impl WhnfConfig
impl WhnfConfig
Sourcepub fn structural() -> Self
pub fn structural() -> Self
Create a config that only applies structural reductions.
Sourcepub fn with_limit(max_steps: u64) -> Self
pub fn with_limit(max_steps: u64) -> Self
Create a config with a step limit.
Sourcepub fn any_enabled(&self) -> bool
pub fn any_enabled(&self) -> bool
Check if at least one reduction is enabled.
Trait Implementations§
Source§impl Clone for WhnfConfig
impl Clone for WhnfConfig
Source§fn clone(&self) -> WhnfConfig
fn clone(&self) -> WhnfConfig
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 WhnfConfig
impl Debug for WhnfConfig
Auto Trait Implementations§
impl Freeze for WhnfConfig
impl RefUnwindSafe for WhnfConfig
impl Send for WhnfConfig
impl Sync for WhnfConfig
impl Unpin for WhnfConfig
impl UnsafeUnpin for WhnfConfig
impl UnwindSafe for WhnfConfig
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