pub struct InlineCandidate {
pub fn_id: u32,
pub call_site_count: u32,
pub env_size: usize,
pub arity: u32,
}Expand description
A record of a potential inline candidate.
Fields§
§fn_id: u32§call_site_count: u32§env_size: usize§arity: u32Implementations§
Source§impl InlineCandidate
impl InlineCandidate
Sourcepub fn inline_score(&self) -> f64
pub fn inline_score(&self) -> f64
Score: lower is more profitable to inline.
Sourcepub fn is_leaf_candidate(&self) -> bool
pub fn is_leaf_candidate(&self) -> bool
Whether the candidate is a leaf (no recursive calls).
Trait Implementations§
Source§impl Clone for InlineCandidate
impl Clone for InlineCandidate
Source§fn clone(&self) -> InlineCandidate
fn clone(&self) -> InlineCandidate
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 moreAuto Trait Implementations§
impl Freeze for InlineCandidate
impl RefUnwindSafe for InlineCandidate
impl Send for InlineCandidate
impl Sync for InlineCandidate
impl Unpin for InlineCandidate
impl UnsafeUnpin for InlineCandidate
impl UnwindSafe for InlineCandidate
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