pub struct ModuleWriter { /* private fields */ }Expand description
Builds section bodies in id order; finish puts the string table first and adds the checksums.
Implementations§
Source§impl ModuleWriter
impl ModuleWriter
pub fn new() -> Self
Sourcepub fn section(&mut self, section: Section, build: impl FnOnce(&mut Writer))
pub fn section(&mut self, section: Section, build: impl FnOnce(&mut Writer))
Panics if section does not follow the last one written, or is STRINGS, which finish writes.
Trait Implementations§
Source§impl Debug for ModuleWriter
impl Debug for ModuleWriter
Auto Trait Implementations§
impl Freeze for ModuleWriter
impl RefUnwindSafe for ModuleWriter
impl Send for ModuleWriter
impl Sync for ModuleWriter
impl Unpin for ModuleWriter
impl UnsafeUnpin for ModuleWriter
impl UnwindSafe for ModuleWriter
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