pub struct TooLargeBufferSize {
pub num_elements: usize,
pub element_size: usize,
}
Expand description
Error indicating a failed allocation for a column buffer
Fields§
§num_elements: usize
Number of elements supposed to be in the buffer.
element_size: usize
Element size in the buffer in bytes.
Implementations§
Source§impl TooLargeBufferSize
impl TooLargeBufferSize
Sourcepub fn add_context(self, buffer_index: u16) -> Error
pub fn add_context(self, buffer_index: u16) -> Error
Map the column allocation error to an crate::Error
adding the context of which
column caused the allocation error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TooLargeBufferSize
impl RefUnwindSafe for TooLargeBufferSize
impl Send for TooLargeBufferSize
impl Sync for TooLargeBufferSize
impl Unpin for TooLargeBufferSize
impl UnwindSafe for TooLargeBufferSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more