Struct arrow_data::DataTypeLayout
source · [−]pub struct DataTypeLayout {
pub buffers: Vec<BufferSpec>,
pub can_contain_null_mask: bool,
}Expand description
Layout specification for a data type
Fields
buffers: Vec<BufferSpec>A vector of buffer layout specifications, one for each expected buffer
can_contain_null_mask: boolCan contain a null bitmask
Implementations
sourceimpl DataTypeLayout
impl DataTypeLayout
sourcepub fn new_fixed_width(byte_width: usize) -> Self
pub fn new_fixed_width(byte_width: usize) -> Self
Describes a basic numeric array where each element has a fixed width
sourcepub fn new_empty() -> Self
pub fn new_empty() -> Self
Describes arrays which have no data of their own (e.g. FixedSizeList). Note such arrays may still have a Null Bitmap
sourcepub fn new_binary(offset_byte_width: usize) -> Self
pub fn new_binary(offset_byte_width: usize) -> Self
Describes a basic numeric array where each element has a fixed
with offset buffer of offset_byte_width bytes, followed by a
variable width data buffer
Trait Implementations
sourceimpl Debug for DataTypeLayout
impl Debug for DataTypeLayout
sourceimpl PartialEq<DataTypeLayout> for DataTypeLayout
impl PartialEq<DataTypeLayout> for DataTypeLayout
sourcefn eq(&self, other: &DataTypeLayout) -> bool
fn eq(&self, other: &DataTypeLayout) -> bool
impl Eq for DataTypeLayout
impl StructuralEq for DataTypeLayout
impl StructuralPartialEq for DataTypeLayout
Auto Trait Implementations
impl RefUnwindSafe for DataTypeLayout
impl Send for DataTypeLayout
impl Sync for DataTypeLayout
impl Unpin for DataTypeLayout
impl UnwindSafe for DataTypeLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more