pub struct EtaPassConfig {
pub do_expand: bool,
pub do_reduce: bool,
pub do_k_reduce: bool,
pub do_proj_rewrite: bool,
pub max_passes: u32,
pub verbose: bool,
}Expand description
Configuration for an eta-normalization pass.
Fields§
§do_expand: bool§do_reduce: bool§do_k_reduce: bool§do_proj_rewrite: bool§max_passes: u32§verbose: boolImplementations§
Source§impl EtaPassConfig
impl EtaPassConfig
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Default configuration: all passes enabled, up to 10 iterations.
Sourcepub fn any_enabled(&self) -> bool
pub fn any_enabled(&self) -> bool
Return true if at least one pass is enabled.
Trait Implementations§
Source§impl Clone for EtaPassConfig
impl Clone for EtaPassConfig
Source§fn clone(&self) -> EtaPassConfig
fn clone(&self) -> EtaPassConfig
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 moreAuto Trait Implementations§
impl Freeze for EtaPassConfig
impl RefUnwindSafe for EtaPassConfig
impl Send for EtaPassConfig
impl Sync for EtaPassConfig
impl Unpin for EtaPassConfig
impl UnsafeUnpin for EtaPassConfig
impl UnwindSafe for EtaPassConfig
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