pub struct BinColumnSliceMut<'a> { /* private fields */ }
Expand description

A view to a mutable array parameter text buffer, which allows for filling the buffer with values.

Implementations§

source§

impl<'a> BinColumnSliceMut<'a>

source

pub fn set_cell(&mut self, row_index: usize, element: Option<&[u8]>)

Sets the value of the buffer at index at Null or the specified binary Text. This method will panic on out of bounds index, or if input holds a text which is larger than the maximum allowed element length. element must be specified without the terminating zero.

source

pub fn ensure_max_element_length( &mut self, element_length: usize, num_rows_to_copy: usize ) -> Result<(), Error>

Ensures that the buffer is large enough to hold elements of element_length. Does nothing if the buffer is already large enough. Otherwise it will reallocate and rebind the buffer. The first num_rows_to_copy_elements will be copied from the old value buffer to the new one. This makes this an extremly expensive operation.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for BinColumnSliceMut<'a>

§

impl<'a> !Send for BinColumnSliceMut<'a>

§

impl<'a> !Sync for BinColumnSliceMut<'a>

§

impl<'a> Unpin for BinColumnSliceMut<'a>

§

impl<'a> !UnwindSafe for BinColumnSliceMut<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.