pub struct Writer<W> { /* private fields */ }
Expand description
A struct you can use to write entries into any io::Write
type,
entries must be inserted in key-order.
Implementations§
source§impl Writer<()>
impl Writer<()>
sourcepub fn builder() -> WriterBuilder
pub fn builder() -> WriterBuilder
Creates a WriterBuilder
, it can be used to configure your Writer
.
source§impl<W: Write> Writer<W>
impl<W: Write> Writer<W>
sourcepub fn insert<A, B>(&mut self, key: A, val: B) -> Result<()>where
A: AsRef<[u8]>,
B: AsRef<[u8]>,
pub fn insert<A, B>(&mut self, key: A, val: B) -> Result<()>where A: AsRef<[u8]>, B: AsRef<[u8]>,
Writes the provided entry into the underlying io::Write
type,
key-values must be given in key-order.
sourcepub fn into_inner(self) -> Result<W>
pub fn into_inner(self) -> Result<W>
Auto Trait Implementations§
impl<W> RefUnwindSafe for Writer<W>where W: RefUnwindSafe,
impl<W> Send for Writer<W>where W: Send,
impl<W> Sync for Writer<W>where W: Sync,
impl<W> Unpin for Writer<W>where W: Unpin,
impl<W> UnwindSafe for Writer<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