pub struct EmissionData { /* private fields */ }
Implementations§
Source§impl EmissionData
impl EmissionData
Sourcepub const fn deconstruct(self) -> DeconstructedEmissionData
pub const fn deconstruct(self) -> DeconstructedEmissionData
Releases the internal data of the EmissionData
into a free struct.
Sourcepub const fn labels_to_position_map(&self) -> &HashMap<Label, usize>
pub const fn labels_to_position_map(&self) -> &HashMap<Label, usize>
Returns a map of public labels to their positions in the emitted code, relative to the beginning of the code, not to the passed stream.
Sourcepub const fn emitted_bytes(&self) -> usize
pub const fn emitted_bytes(&self) -> usize
Returns the number of bytes emitted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmissionData
impl RefUnwindSafe for EmissionData
impl Send for EmissionData
impl Sync for EmissionData
impl Unpin for EmissionData
impl UnwindSafe for EmissionData
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