Skip to main content

TableWriter

Trait TableWriter 

Source
pub trait TableWriter {
    type Schema: Clone;
    type CloseResult: Send;
    type Config: Clone;

    // Required methods
    fn new(
        path: PathBuf,
        schema: Self::Schema,
        config: Self::Config,
    ) -> Result<Self>
       where Self: Sized;
    fn flush(&mut self) -> Result<()>;
    fn close(self) -> Result<Self::CloseResult>;
}

Required Associated Types§

Required Methods§

Source

fn new( path: PathBuf, schema: Self::Schema, config: Self::Config, ) -> Result<Self>
where Self: Sized,

Source

fn flush(&mut self) -> Result<()>

Calls .into() on the internal builder, and writes its result to disk.

Source

fn close(self) -> Result<Self::CloseResult>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§