Struct bookdata::goodreads::genres::BookGenreWriter
source · 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: usize
Implementations§
source§impl BookGenreWriter
impl BookGenreWriter
sourcepub fn open() -> Result<BookGenreWriter>
pub fn open() -> Result<BookGenreWriter>
Open a new output
Trait Implementations§
source§impl DataSink for BookGenreWriter
impl DataSink for BookGenreWriter
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 write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
Auto Trait Implementations§
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