Function odbc_api::buffers::try_buffer_from_description
source · [−]pub fn try_buffer_from_description(
capacity: usize,
descs: impl Iterator<Item = BufferDescription>
) -> Result<ColumnarBuffer<AnyColumnBuffer>, Error>
👎 Deprecated since 0.40.2:
Please use ColumnarAnyBuffer::try_from_description
instead
Expand description
Convinience function allocating a ColumnarBuffer
fitting the buffer descriptions. If not
enough memory is available to allocate the buffers this function fails with
Error::TooLargeColumnBufferSize
. This function is slower than
self::buffer_from_description
which would just panic if not enough memory is available for
allocation.