pub struct NullArray { /* private fields */ }Expand description
A column of len nulls and nothing else.
Implementations§
Source§impl NullArray
impl NullArray
Sourcepub const fn get(&self, _index: usize) -> Option<()>
pub const fn get(&self, _index: usize) -> Option<()>
Always None; present so the accessor shape matches the other
families.
Sourcepub fn slice(&self, offset: usize, len: usize) -> Self
pub fn slice(&self, offset: usize, len: usize) -> Self
A sub-range, clamped to the array (the crate-wide slicing convention).
Trait Implementations§
Source§impl Array for NullArray
impl Array for NullArray
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Erased self, for
ArrayExt::downcast.Source§fn validity(&self) -> Option<&Bitmap>
fn validity(&self) -> Option<&Bitmap>
The validity bitmap, or
None when every slot is valid. Read moreSource§fn null_count(&self) -> usize
fn null_count(&self) -> usize
Number of null slots.
Source§fn buffer_memory_size(&self) -> usize
fn buffer_memory_size(&self) -> usize
Bytes of buffer memory this array pins, including shared allocations it
only partly covers. Read more
Source§impl ArrayAccessor for &NullArray
impl ArrayAccessor for &NullArray
impl Eq for NullArray
Source§impl<'a> IntoIterator for &'a NullArray
impl<'a> IntoIterator for &'a NullArray
impl StructuralPartialEq for NullArray
Auto Trait Implementations§
impl Freeze for NullArray
impl RefUnwindSafe for NullArray
impl Send for NullArray
impl Sync for NullArray
impl Unpin for NullArray
impl UnsafeUnpin for NullArray
impl UnwindSafe for NullArray
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A> IntoArrayRef for Awhere
A: Array,
impl<A> IntoArrayRef for Awhere
A: Array,
Source§fn into_array_ref(self) -> ArrayRef
fn into_array_ref(self) -> ArrayRef
Moves
self into a shared, dynamically typed column.