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>) -> Self
pub fn new(buf: &'buf mut Vec<u8>) -> Self
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