pub struct Writer<'p, 'w, B> {
out: &'w mut B,
parent: Option<&'p mut usize>,
left: usize,
}
Fields§
§out: &'w mut B
§parent: Option<&'p mut usize>
§left: usize
Implementations§
Source§impl<B: WriterBackend> Writer<'_, '_, B>
impl<B: WriterBackend> Writer<'_, '_, B>
pub fn full_box( &mut self, len: usize, typ: [u8; 4], version: u8, ) -> Result<Writer<'_, '_, B>, B::Error>
pub fn basic_box( &mut self, len: usize, typ: [u8; 4], ) -> Result<Writer<'_, '_, B>, B::Error>
pub fn push(&mut self, data: &[u8]) -> Result<(), B::Error>
pub fn u8(&mut self, val: u8) -> Result<(), B::Error>
pub fn u16(&mut self, val: u16) -> Result<(), B::Error>
pub fn u32(&mut self, val: u32) -> Result<(), B::Error>
pub fn u64(&mut self, val: u64) -> Result<(), B::Error>
Trait Implementations§
Auto Trait Implementations§
impl<'p, 'w, B> Freeze for Writer<'p, 'w, B>
impl<'p, 'w, B> RefUnwindSafe for Writer<'p, 'w, B>where
B: RefUnwindSafe,
impl<'p, 'w, B> Send for Writer<'p, 'w, B>where
B: Send,
impl<'p, 'w, B> Sync for Writer<'p, 'w, B>where
B: Sync,
impl<'p, 'w, B> Unpin for Writer<'p, 'w, B>
impl<'p, 'w, B> !UnwindSafe for Writer<'p, 'w, B>
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