pub struct RegAlloc { /* private fields */ }Expand description
Register allocation state for a single cell
Implementations§
Source§impl RegAlloc
impl RegAlloc
pub fn new() -> Self
Sourcepub fn alloc_named(&mut self, name: &str) -> u8
pub fn alloc_named(&mut self, name: &str) -> u8
Allocate a named register for a parameter or let binding
Sourcepub fn alloc_temp(&mut self) -> u8
pub fn alloc_temp(&mut self) -> u8
Allocate a temporary register
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegAlloc
impl RefUnwindSafe for RegAlloc
impl Send for RegAlloc
impl Sync for RegAlloc
impl Unpin for RegAlloc
impl UnwindSafe for RegAlloc
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