Struct odbc_api::buffers::TextColumnWriter[][src]

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

Fills a text column buffer with elements from an Iterator.

Implementations

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

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

Fill the text 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 strings returned by 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 string 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 string length without terminating zero.

Trait Implementations

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for TextColumnWriter<'a>

impl<'a> Send for TextColumnWriter<'a>

impl<'a> Sync for TextColumnWriter<'a>

impl<'a> Unpin for TextColumnWriter<'a>

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

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.