pub struct TableArchiver<'a, W> { /* private fields */ }Expand description
Handle for writing individual rows with an Archiver.
Implementations§
Source§impl<W: Write> TableArchiver<'_, W>
impl<W: Write> TableArchiver<'_, W>
Sourcepub fn write_row(&mut self, row: &impl RowLike) -> Result<(), Error>
pub fn write_row(&mut self, row: &impl RowLike) -> Result<(), Error>
Write a single row.
The row can be a Row (for example, returned from a query),
a HashMap, or something else implementing RowLike.
The fields in row must match those in the actual table.
Sourcepub fn writer_mut(&mut self) -> &mut W
pub fn writer_mut(&mut self) -> &mut W
Access the inner writer
Take care! Using this to write will probably make data corruption.
Auto Trait Implementations§
impl<'a, W> Freeze for TableArchiver<'a, W>
impl<'a, W> RefUnwindSafe for TableArchiver<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for TableArchiver<'a, W>where
W: Send,
impl<'a, W> Sync for TableArchiver<'a, W>where
W: Sync,
impl<'a, W> Unpin for TableArchiver<'a, W>
impl<'a, W> !UnwindSafe for TableArchiver<'a, W>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more