pub enum Allocation<R: Copy> {
Register(R),
Spill(i32),
}Expand description
Result of allocating a virtual register: either a physical register or a stack spill slot (byte offset from the frame base pointer).
Variants§
Trait Implementations§
impl<R: Copy + Copy> Copy for Allocation<R>
impl<R: Eq + Copy> Eq for Allocation<R>
impl<R: PartialEq + Copy> StructuralPartialEq for Allocation<R>
Auto Trait Implementations§
impl<R> Freeze for Allocation<R>where
R: Freeze,
impl<R> RefUnwindSafe for Allocation<R>where
R: RefUnwindSafe,
impl<R> Send for Allocation<R>where
R: Send,
impl<R> Sync for Allocation<R>where
R: Sync,
impl<R> Unpin for Allocation<R>where
R: Unpin,
impl<R> UnsafeUnpin for Allocation<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Allocation<R>where
R: UnwindSafe,
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