pub struct PipelineConfig {
pub level: OptimizationLevel,
pub max_iterations: usize,
pub custom_passes: Option<Vec<OptimizationPass>>,
pub enable_convergence: bool,
}Expand description
Configuration for the optimization pipeline.
Fields§
§level: OptimizationLevelOptimization level
max_iterations: usizeMaximum number of iterations
custom_passes: Option<Vec<OptimizationPass>>Custom pass ordering (if None, uses default ordering by priority)
enable_convergence: boolWhether to enable convergence detection
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
Sourcepub fn with_level(level: OptimizationLevel) -> Self
pub fn with_level(level: OptimizationLevel) -> Self
Create a new configuration with the given optimization level.
Sourcepub fn with_custom_passes(self, passes: Vec<OptimizationPass>) -> Self
pub fn with_custom_passes(self, passes: Vec<OptimizationPass>) -> Self
Set custom passes.
Sourcepub fn with_max_iterations(self, max_iterations: usize) -> Self
pub fn with_max_iterations(self, max_iterations: usize) -> Self
Set maximum iterations.
Sourcepub fn without_convergence(self) -> Self
pub fn without_convergence(self) -> Self
Disable convergence detection.
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
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 PipelineConfig
impl Debug for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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