pub struct InlineConfig {
pub heuristics: InlineHeuristics,
pub enable_recursive_inlining: bool,
pub enable_hot_inlining: bool,
pub max_passes: u32,
}Expand description
Top-level configuration for the inlining pass.
Fields§
§heuristics: InlineHeuristicsTunable heuristic parameters.
enable_recursive_inlining: boolWhether to allow (limited) inlining of recursive functions.
enable_hot_inlining: boolWhether to prioritise inlining of hot (frequently-called) functions.
max_passes: u32Maximum number of inlining sweeps over the declaration list.
Trait Implementations§
Source§impl Clone for InlineConfig
impl Clone for InlineConfig
Source§fn clone(&self) -> InlineConfig
fn clone(&self) -> InlineConfig
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 InlineConfig
impl Debug for InlineConfig
Auto Trait Implementations§
impl Freeze for InlineConfig
impl RefUnwindSafe for InlineConfig
impl Send for InlineConfig
impl Sync for InlineConfig
impl Unpin for InlineConfig
impl UnsafeUnpin for InlineConfig
impl UnwindSafe for InlineConfig
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