pub struct InlineCost {
pub body_size: u64,
pub call_overhead: u64,
pub estimated_savings: i64,
}Expand description
Cost model for inlining a single call site.
Fields§
§body_size: u64Estimated code-size contribution of the callee body.
call_overhead: u64Overhead of the call itself (stack frame, arg passing, return).
estimated_savings: i64Estimated savings from inlining (e.g. eliminated argument allocations, constant propagation opportunities). May be negative.
Implementations§
Trait Implementations§
Source§impl Clone for InlineCost
impl Clone for InlineCost
Source§fn clone(&self) -> InlineCost
fn clone(&self) -> InlineCost
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 InlineCost
impl Debug for InlineCost
Auto Trait Implementations§
impl Freeze for InlineCost
impl RefUnwindSafe for InlineCost
impl Send for InlineCost
impl Sync for InlineCost
impl Unpin for InlineCost
impl UnsafeUnpin for InlineCost
impl UnwindSafe for InlineCost
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