pub struct SpecializationConfig {
pub max_specializations: usize,
pub specialize_closures: bool,
pub specialize_numerics: bool,
pub size_threshold: usize,
pub growth_factor: f64,
pub allow_recursive: bool,
pub specialize_type_params: bool,
pub max_recursive_depth: usize,
}Expand description
Configuration for the specialization pass
Fields§
§max_specializations: usizeMaximum number of specializations per function
specialize_closures: boolWhether to specialize functions that receive closures
specialize_numerics: boolWhether to specialize numeric operations (Nat -> u64, etc.)
size_threshold: usizeMaximum function size to consider for specialization (in instructions)
growth_factor: f64Maximum total code growth factor (1.0 = no growth, 2.0 = double)
allow_recursive: boolWhether to handle recursive specializations
specialize_type_params: boolWhether to specialize on type parameters
max_recursive_depth: usizeMaximum depth for recursive specialization
Trait Implementations§
Source§impl Clone for SpecializationConfig
impl Clone for SpecializationConfig
Source§fn clone(&self) -> SpecializationConfig
fn clone(&self) -> SpecializationConfig
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 SpecializationConfig
impl Debug for SpecializationConfig
Auto Trait Implementations§
impl Freeze for SpecializationConfig
impl RefUnwindSafe for SpecializationConfig
impl Send for SpecializationConfig
impl Sync for SpecializationConfig
impl Unpin for SpecializationConfig
impl UnsafeUnpin for SpecializationConfig
impl UnwindSafe for SpecializationConfig
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