pub struct AssemblerState { /* private fields */ }
Expand description
State of Assembler, keep tracking of generated function names and registered external functions.
Implementations§
Source§impl AssemblerState
impl AssemblerState
Sourcepub fn fresh_name(&mut self, name: impl Into<String>) -> String
pub fn fresh_name(&mut self, name: impl Into<String>) -> String
Create a fresh function name with prefix name
.
Trait Implementations§
Source§impl Default for AssemblerState
impl Default for AssemblerState
Source§fn default() -> AssemblerState
fn default() -> AssemblerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssemblerState
impl RefUnwindSafe for AssemblerState
impl !Send for AssemblerState
impl !Sync for AssemblerState
impl Unpin for AssemblerState
impl UnwindSafe for AssemblerState
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