pub struct InliningThreshold {
pub max_size: usize,
pub max_depth: usize,
pub min_call_count: u64,
}Expand description
Threshold configuration for inlining decisions.
Fields§
§max_size: usizeMaximum size (in opcodes) of a function that may be inlined.
max_depth: usizeMaximum call depth after which inlining is suppressed.
min_call_count: u64Minimum call count before inlining is triggered.
Trait Implementations§
Source§impl Clone for InliningThreshold
impl Clone for InliningThreshold
Source§fn clone(&self) -> InliningThreshold
fn clone(&self) -> InliningThreshold
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 InliningThreshold
impl Debug for InliningThreshold
Auto Trait Implementations§
impl Freeze for InliningThreshold
impl RefUnwindSafe for InliningThreshold
impl Send for InliningThreshold
impl Sync for InliningThreshold
impl Unpin for InliningThreshold
impl UnsafeUnpin for InliningThreshold
impl UnwindSafe for InliningThreshold
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