Enum arrow_data::BufferSpec
source · pub enum BufferSpec {
FixedWidth {
byte_width: usize,
},
VariableWidth,
BitMap,
AlwaysNull,
}
Expand description
Layout specification for a single data type buffer
Variants§
FixedWidth
each element has a fixed width
VariableWidth
Variable width, such as string data for utf8 data
BitMap
Buffer holds a bitmap.
Note: Unlike the C++ implementation, the null/validity buffer is handled specially rather than as another of the buffers in the spec, so this variant is only used for the Boolean type.
AlwaysNull
Buffer is always null. Unused currently in Rust implementation, (used in C++ for Union type)
Trait Implementations§
source§impl Debug for BufferSpec
impl Debug for BufferSpec
source§impl PartialEq<BufferSpec> for BufferSpec
impl PartialEq<BufferSpec> for BufferSpec
source§fn eq(&self, other: &BufferSpec) -> bool
fn eq(&self, other: &BufferSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BufferSpec
impl StructuralEq for BufferSpec
impl StructuralPartialEq for BufferSpec
Auto Trait Implementations§
impl RefUnwindSafe for BufferSpec
impl Send for BufferSpec
impl Sync for BufferSpec
impl Unpin for BufferSpec
impl UnwindSafe for BufferSpec
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