pub struct RowWriter<'buf> { /* private fields */ }
Expand description
An interface that facilitates writing values for a CQL query.
Implementations§
source§impl<'buf> RowWriter<'buf>
impl<'buf> RowWriter<'buf>
sourcepub fn new(buf: &'buf mut Vec<u8>) -> RowWriter<'buf>
pub fn new(buf: &'buf mut Vec<u8>) -> RowWriter<'buf>
Creates a new row writer based on an existing Vec.
The newly created row writer will append data to the end of the vec.
sourcepub fn value_count(&self) -> usize
pub fn value_count(&self) -> usize
Returns the number of values that were written so far.
Note that the protocol allows at most u16::MAX to be written into a query, but the writer’s interface allows more to be written.
sourcepub fn make_cell_writer(&mut self) -> CellWriter<'_>
pub fn make_cell_writer(&mut self) -> CellWriter<'_>
Appends a new value to the sequence and returns an object that allows to fill it in.
sourcepub fn append_serialize_row(&mut self, sv: &SerializedValues)
pub fn append_serialize_row(&mut self, sv: &SerializedValues)
Appends the values from an existing SerializedValues
object to the
current RowWriter
.
Auto Trait Implementations§
impl<'buf> Freeze for RowWriter<'buf>
impl<'buf> RefUnwindSafe for RowWriter<'buf>
impl<'buf> Send for RowWriter<'buf>
impl<'buf> Sync for RowWriter<'buf>
impl<'buf> Unpin for RowWriter<'buf>
impl<'buf> !UnwindSafe for RowWriter<'buf>
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> 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