Struct odbc_api::buffers::TextColumnWriter [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,