[−][src]Struct cranelift_codegen::machinst::sections::MachSectionSize
A MachSectionOutput implementation that records only size.
Fields
start_offset: CodeOffset
The starting offset of this section.
offset: CodeOffset
The current offset of this section.
Methods
impl MachSectionSize
[src]
pub fn new(start_offset: CodeOffset) -> MachSectionSize
[src]
Create a new size-counting dummy section.
pub fn size(&self) -> CodeOffset
[src]
Return the size this section would take if emitted with a real sink.
Trait Implementations
impl MachSectionOutput for MachSectionSize
[src]
fn cur_offset_from_start(&self) -> CodeOffset
[src]
fn start_offset(&self) -> CodeOffset
[src]
fn put1(&mut self, _: u8)
[src]
fn put_data(&mut self, data: &[u8])
[src]
fn add_reloc(&mut self, _: SourceLoc, _: Reloc, _: &ExternalName, _: Addend)
[src]
fn add_trap(&mut self, _: SourceLoc, _: TrapCode)
[src]
fn add_call_site(&mut self, _: SourceLoc, _: Opcode)
[src]
fn start_srcloc(&mut self, _: SourceLoc)
[src]
fn end_srcloc(&mut self)
[src]
fn put2(&mut self, value: u16)
[src]
fn put4(&mut self, value: u32)
[src]
fn put8(&mut self, value: u64)
[src]
fn align_to(&mut self, align_to: CodeOffset)
[src]
Auto Trait Implementations
impl RefUnwindSafe for MachSectionSize
impl Send for MachSectionSize
impl Sync for MachSectionSize
impl Unpin for MachSectionSize
impl UnwindSafe for MachSectionSize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,