Struct odbc_api::buffers::BinColumnWriter[][src]

pub struct BinColumnWriter<'a> { /* fields omitted */ }

Fills a binary column buffer with elements from an Iterator.

Implementations

impl<'a> BinColumnWriter<'a>[src]

pub fn write<'b>(&mut self, it: impl Iterator<Item = Option<&'b [u8]>>)[src]

Fill the binary column with values by consuming the iterator and copying its items into the buffer. It will not extract more items from the iterator than the buffer may hold. This method panics if elements of the iterator are larger than the maximum element length of the buffer.

pub fn set_max_len(&mut self, new_max_len: usize)[src]

Changes the maximum element length the buffer can hold. This operation is useful if you find an unexpected large input during insertion. All values in the buffer will be set to NULL.

Parameters

  • new_max_len: New maximum element length

Trait Implementations

impl<'a> Debug for BinColumnWriter<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for BinColumnWriter<'a>[src]

impl<'a> Send for BinColumnWriter<'a>[src]

impl<'a> Sync for BinColumnWriter<'a>[src]

impl<'a> Unpin for BinColumnWriter<'a>[src]

impl<'a> !UnwindSafe for BinColumnWriter<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.