Trait polars_io::WriterFactory

source ·
pub trait WriterFactory {
    // Required methods
    fn create_writer<W: Write + 'static>(
        &self,
        writer: W
    ) -> Box<dyn SerWriter<W>>;
    fn extension(&self) -> PathBuf;
}

Required Methods§

source

fn create_writer<W: Write + 'static>(&self, writer: W) -> Box<dyn SerWriter<W>>

source

fn extension(&self) -> PathBuf

Object Safety§

This trait is not object safe.

Implementors§

source§

impl WriterFactory for IpcStreamWriterOption

Available on crate feature ipc_streaming and (crate features ipc or ipc_streaming) only.
source§

impl WriterFactory for IpcWriterOption

Available on crate features ipc or ipc_streaming only.