pub struct SerializedColumnWriter<'a> {
inner: ColumnWriter<'a>,
on_close: Option<OnCloseColumnChunk<'a>>,
}
Expand description
A wrapper around a ColumnWriter
that invokes a callback on Self::close
Fields§
§inner: ColumnWriter<'a>
§on_close: Option<OnCloseColumnChunk<'a>>
Implementations§
Source§impl<'a> SerializedColumnWriter<'a>
impl<'a> SerializedColumnWriter<'a>
Sourcepub fn new(
inner: ColumnWriter<'a>,
on_close: Option<OnCloseColumnChunk<'a>>,
) -> Self
pub fn new( inner: ColumnWriter<'a>, on_close: Option<OnCloseColumnChunk<'a>>, ) -> Self
Create a new SerializedColumnWriter
from a ColumnWriter
and an
optional callback to be invoked on Self::close
Sourcepub fn untyped(&mut self) -> &mut ColumnWriter<'a>
pub fn untyped(&mut self) -> &mut ColumnWriter<'a>
Returns a reference to an untyped ColumnWriter
Sourcepub fn typed<T: DataType>(&mut self) -> &mut ColumnWriterImpl<'a, T>
pub fn typed<T: DataType>(&mut self) -> &mut ColumnWriterImpl<'a, T>
Returns a reference to a typed ColumnWriterImpl
Sourcepub fn close(self) -> Result<()>
pub fn close(self) -> Result<()>
Close this SerializedColumnWriter
Auto Trait Implementations§
impl<'a> !Freeze for SerializedColumnWriter<'a>
impl<'a> !RefUnwindSafe for SerializedColumnWriter<'a>
impl<'a> !Send for SerializedColumnWriter<'a>
impl<'a> !Sync for SerializedColumnWriter<'a>
impl<'a> Unpin for SerializedColumnWriter<'a>
impl<'a> !UnwindSafe for SerializedColumnWriter<'a>
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