pub struct SpeculativeInliner {
pub records: Vec<SpeculativeInlineRecord>,
pub threshold: f64,
}Fields§
§records: Vec<SpeculativeInlineRecord>§threshold: f64Implementations§
Source§impl SpeculativeInliner
impl SpeculativeInliner
pub fn new(threshold: f64) -> Self
pub fn add(&mut self, record: SpeculativeInlineRecord)
pub fn committed(&self) -> Vec<&SpeculativeInlineRecord>
pub fn pending(&self) -> Vec<&SpeculativeInlineRecord>
pub fn confirm_callee(&mut self, callee: &str)
pub fn total_confidence(&self) -> f64
Trait Implementations§
Source§impl Debug for SpeculativeInliner
impl Debug for SpeculativeInliner
Source§impl Default for SpeculativeInliner
impl Default for SpeculativeInliner
Source§fn default() -> SpeculativeInliner
fn default() -> SpeculativeInliner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpeculativeInliner
impl RefUnwindSafe for SpeculativeInliner
impl Send for SpeculativeInliner
impl Sync for SpeculativeInliner
impl Unpin for SpeculativeInliner
impl UnsafeUnpin for SpeculativeInliner
impl UnwindSafe for SpeculativeInliner
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