pub struct MemoryWriter { /* private fields */ }Expand description
Writer for in-memory output
Implementations§
Source§impl MemoryWriter
impl MemoryWriter
Sourcepub fn new(format: DataFormat) -> Self
pub fn new(format: DataFormat) -> Self
Create a new memory writer
Sourcepub fn with_format_options(self, options: FormatWriteOptions) -> Self
pub fn with_format_options(self, options: FormatWriteOptions) -> Self
Set format-specific options
Sourcepub fn into_inner(self) -> Vec<u8> ⓘ
pub fn into_inner(self) -> Vec<u8> ⓘ
Get the written data
Trait Implementations§
Source§impl DataWriter for MemoryWriter
impl DataWriter for MemoryWriter
Source§fn write(&mut self, value: &Value, options: &WriteOptions) -> Result<()>
fn write(&mut self, value: &Value, options: &WriteOptions) -> Result<()>
Write a DataFrame to the destination
Source§fn format(&self) -> DataFormat
fn format(&self) -> DataFormat
Get the output format
Source§fn write_lazy(&mut self, lf: &LazyFrame, options: &WriteOptions) -> Result<()>
fn write_lazy(&mut self, lf: &LazyFrame, options: &WriteOptions) -> Result<()>
Write a LazyFrame to the destination (if supported)
Source§fn write_streaming<I>(
&mut self,
_iter: I,
_options: &WriteOptions,
) -> Result<()>
fn write_streaming<I>( &mut self, _iter: I, _options: &WriteOptions, ) -> Result<()>
Write streaming data (if supported)
Source§fn supports_streaming(&self) -> bool
fn supports_streaming(&self) -> bool
Check if the writer supports streaming
Auto Trait Implementations§
impl Freeze for MemoryWriter
impl RefUnwindSafe for MemoryWriter
impl Send for MemoryWriter
impl Sync for MemoryWriter
impl Unpin for MemoryWriter
impl UnwindSafe for MemoryWriter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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