pub struct Writer<W: ?Sized> { /* private fields */ }
Expand description
DwarFS section writer.
Implementations§
Source§impl<W: Write> Writer<W>
impl<W: Write> Writer<W>
Sourcepub fn section_count(&self) -> u32
pub fn section_count(&self) -> u32
Number of sections of initiated via write_section
.
Sourcepub fn write_section(
&mut self,
section_type: SectionType,
compression: CompressParam,
payload: &[u8],
) -> Result<()>
pub fn write_section( &mut self, section_type: SectionType, compression: CompressParam, payload: &[u8], ) -> Result<()>
Write a section with given (uncompressed) payload.
Sourcepub fn write_metadata_sections(
&mut self,
metadata: &Metadata,
compression: CompressParam,
) -> Result<()>
pub fn write_metadata_sections( &mut self, metadata: &Metadata, compression: CompressParam, ) -> Result<()>
Write metadata sections METADATA_V2_{,_SCHEMA}
.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Writer<W>
impl<W> !RefUnwindSafe for Writer<W>
impl<W> Send for Writer<W>
impl<W> Sync for Writer<W>
impl<W> Unpin for Writer<W>
impl<W> !UnwindSafe for Writer<W>
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