pub struct SpillCandidate {
pub vreg: LcnfVarId,
pub cost: f64,
}Expand description
A candidate for spilling, ranked by cost.
Fields§
§vreg: LcnfVarIdThe virtual register to spill.
cost: f64Estimated spill cost (frequency * size).
Implementations§
Trait Implementations§
Source§impl Clone for SpillCandidate
impl Clone for SpillCandidate
Source§fn clone(&self) -> SpillCandidate
fn clone(&self) -> SpillCandidate
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 SpillCandidate
impl RefUnwindSafe for SpillCandidate
impl Send for SpillCandidate
impl Sync for SpillCandidate
impl Unpin for SpillCandidate
impl UnsafeUnpin for SpillCandidate
impl UnwindSafe for SpillCandidate
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