Struct odbc_api::buffers::BinColumnWriter [−][src]
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
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]
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>,