pub struct Bom { /* private fields */ }Expand description
BOM file low-level representation.
Contains regular and named blocks.
Implementations§
Source§impl Bom
impl Bom
Sourcepub fn named_blocks(&self) -> &NamedBlocks
pub fn named_blocks(&self) -> &NamedBlocks
Get all named blocks.
Sourcepub fn write_named<N, W, C, T>(
&mut self,
name: N,
writer: W,
value: &T,
context: &mut C,
) -> Result<(), Error>
pub fn write_named<N, W, C, T>( &mut self, name: N, writer: W, value: &T, context: &mut C, ) -> Result<(), Error>
Write value into a new named block.
Sourcepub fn read_named<C, T: BlockRead<C>>(
&mut self,
name: &CStr,
file: &[u8],
context: &mut C,
) -> Result<T, Error>
pub fn read_named<C, T: BlockRead<C>>( &mut self, name: &CStr, file: &[u8], context: &mut C, ) -> Result<T, Error>
Read a value of type T from a named block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bom
impl RefUnwindSafe for Bom
impl Send for Bom
impl Sync for Bom
impl Unpin for Bom
impl UnwindSafe for Bom
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