pub struct Encoder<W> { /* private fields */ }Implementations§
Source§impl<W> Encoder<W>
impl<W> Encoder<W>
pub fn new(output: W, page_len: u32) -> Self
pub fn begin_section<'h, T>( &mut self, heap: &'h mut Heap, ) -> Encoder<'_, 'h, W, T>
pub fn end(self) -> W
pub fn section_from_iter<I: IntoIterator>( &mut self, heap: &mut Heap, items: I, ) -> Result<Section<<I::Item as Deref>::Target>>
pub fn section_from_iter_with<I: IntoIterator, C>( &mut self, heap: &mut Heap, context: &C, items: I, ) -> Result<Section<<I::Item as Deref>::Target>>
Auto Trait Implementations§
impl<W> Freeze for Encoder<W>where
W: Freeze,
impl<W> RefUnwindSafe for Encoder<W>where
W: RefUnwindSafe,
impl<W> Send for Encoder<W>where
W: Send,
impl<W> Sync for Encoder<W>where
W: Sync,
impl<W> Unpin for Encoder<W>where
W: Unpin,
impl<W> UnwindSafe for Encoder<W>where
W: UnwindSafe,
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