Struct sndjvu_format::ser::SerializeMultiPageHead
source · pub struct SerializeMultiPageHead<'wr> { /* private fields */ }
Expand description
Serializer for the “head” data of a multi-page document (DIRM
and NAVM
chunks).
Implementations§
source§impl<'wr> SerializeMultiPageHead<'wr>
impl<'wr> SerializeMultiPageHead<'wr>
sourcepub fn raw(&self) -> &[u8] ⓘ
pub fn raw(&self) -> &[u8] ⓘ
Access raw data for BZZ compression.
The returned bytes should be compressed using a BZZ implementation, and the compressed data
passed as the first argument to SerializeMultiPageHead::dirm_navm
to continue
serialization.
Provide compressed DIRM
and NAVM
data to continue with serialization.
Create the NAVM
data by building up a BookmarkBuf
and passing the output of
BookmarkBuf::as_bytes
to a BZZ compressor.
Trait Implementations§
Auto Trait Implementations§
impl<'wr> !RefUnwindSafe for SerializeMultiPageHead<'wr>
impl<'wr> !Send for SerializeMultiPageHead<'wr>
impl<'wr> !Sync for SerializeMultiPageHead<'wr>
impl<'wr> Unpin for SerializeMultiPageHead<'wr>
impl<'wr> !UnwindSafe for SerializeMultiPageHead<'wr>
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