pub struct BookGenreWriter {
genres: IdIndex<String>,
writer: TableWriter<BookGenreRecord>,
n_recs: usize,
}Expand description
Object writer to transform and write GoodReads book-genre records
Fields§
§genres: IdIndex<String>§writer: TableWriter<BookGenreRecord>§n_recs: usizeImplementations§
Source§impl BookGenreWriter
impl BookGenreWriter
Sourcepub fn open() -> Result<BookGenreWriter>
pub fn open() -> Result<BookGenreWriter>
Open a new output
Trait Implementations§
Source§impl ObjectWriter<RawBookGenre> for BookGenreWriter
impl ObjectWriter<RawBookGenre> for BookGenreWriter
Source§fn write_object(&mut self, row: RawBookGenre) -> Result<()>
fn write_object(&mut self, row: RawBookGenre) -> Result<()>
Write one object.
Source§fn finish_objects(self) -> Result<usize>
fn finish_objects(self) -> Result<usize>
Finish and close the target.
Auto Trait Implementations§
impl Freeze for BookGenreWriter
impl !RefUnwindSafe for BookGenreWriter
impl Send for BookGenreWriter
impl Sync for BookGenreWriter
impl Unpin for BookGenreWriter
impl !UnwindSafe for BookGenreWriter
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