pub struct NullArray<T: Unit = (), Nullable: Nullability = NonNullable, Buffer: BufferType = VecBuffer>(/* private fields */);
Expand description
A sequence of nulls.
Trait Implementations§
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>
Source§type Item = <Nullable as Nullability>::Item<T>
type Item = <Nullable as Nullability>::Item<T>
The items stored in this array.
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>
Available on crate feature arrow-rs
only.
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>
Available on crate feature
arrow-rs
only.Source§impl<T: Unit, Buffer: BufferType> BitmapRefMut for NullArray<T, Nullable, Buffer>
impl<T: Unit, Buffer: BufferType> BitmapRefMut for NullArray<T, Nullable, Buffer>
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Clone for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Clone for NullArray<T, Nullable, Buffer>
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Default for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Default for NullArray<T, Nullable, Buffer>
Source§impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> Extend<U> for NullArray<T, Nullable, Buffer>
impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> Extend<U> for NullArray<T, Nullable, Buffer>
Source§fn extend<I: IntoIterator<Item = U>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = U>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T: Unit, Buffer: BufferType> From<Arc<dyn Array>> for NullArray<T, NonNullable, Buffer>
Available on crate feature arrow-rs
only.
impl<T: Unit, Buffer: BufferType> From<Arc<dyn Array>> for NullArray<T, NonNullable, Buffer>
Available on crate feature
arrow-rs
only.Source§impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for Arc<dyn Array>
Available on crate feature arrow-rs
only.
impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for Arc<dyn Array>
Available on crate feature
arrow-rs
only.Source§fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
Converts to this type from the input type.
Source§impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray
Available on crate feature arrow-rs
only.
impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray
Available on crate feature
arrow-rs
only.Source§fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
Converts to this type from the input type.
Source§impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray<T, Nullable, Buffer>
impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray<T, Nullable, Buffer>
Source§fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
fn from(value: NullArray<T, NonNullable, Buffer>) -> Self
Converts to this type from the input type.
Source§impl<T: Unit, Buffer: BufferType> From<NullArray> for NullArray<T, NonNullable, Buffer>
Available on crate feature arrow-rs
only.
impl<T: Unit, Buffer: BufferType> From<NullArray> for NullArray<T, NonNullable, Buffer>
Available on crate feature
arrow-rs
only.Source§impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> FromIterator<U> for NullArray<T, Nullable, Buffer>
impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> FromIterator<U> for NullArray<T, Nullable, Buffer>
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = U>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = U>,
Creates a value from an iterator. Read more
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Index for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Index for NullArray<T, Nullable, Buffer>
Source§type Item<'a> = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as Index>::Item<'a>
where
Self: 'a
type Item<'a> = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as Index>::Item<'a> where Self: 'a
The item.
Source§unsafe fn index_unchecked(&self, index: usize) -> Self::Item<'_>
unsafe fn index_unchecked(&self, index: usize) -> Self::Item<'_>
Returns the value at given index. Skips bound checking. Read more
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> IntoIterator for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> IntoIterator for NullArray<T, Nullable, Buffer>
Source§type Item = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::Item
type Item = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::IntoIter
type IntoIter = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Length for NullArray<T, Nullable, Buffer>
impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Length for NullArray<T, Nullable, Buffer>
Source§impl<T: Unit, Buffer: BufferType> ValidityBitmap for NullArray<T, Nullable, Buffer>
impl<T: Unit, Buffer: BufferType> ValidityBitmap for NullArray<T, Nullable, Buffer>
Source§fn is_null(&self, index: usize) -> Option<bool>
fn is_null(&self, index: usize) -> Option<bool>
Returns
true
if the element at position index
is null.Source§unsafe fn is_null_unchecked(&self, index: usize) -> bool
unsafe fn is_null_unchecked(&self, index: usize) -> bool
Returns
true
if the element at position index
is null, without
performing any bounds checking. Read moreSource§fn null_count(&self) -> usize
fn null_count(&self) -> usize
Returns the number of null elements.
Source§fn is_valid(&self, index: usize) -> Option<bool>
fn is_valid(&self, index: usize) -> Option<bool>
Returns
true
if the element at position index
is valid.Source§unsafe fn is_valid_unchecked(&self, index: usize) -> bool
unsafe fn is_valid_unchecked(&self, index: usize) -> bool
Returns
true
if the element at position index
is valid, without
performing any bounds checking. Read moreSource§fn valid_count(&self) -> usize
fn valid_count(&self) -> usize
Returns the number of valid elements.
Auto Trait Implementations§
impl<T, Nullable, Buffer> Freeze for NullArray<T, Nullable, Buffer>
impl<T, Nullable, Buffer> RefUnwindSafe for NullArray<T, Nullable, Buffer>
impl<T, Nullable, Buffer> Send for NullArray<T, Nullable, Buffer>
impl<T, Nullable, Buffer> Sync for NullArray<T, Nullable, Buffer>
impl<T, Nullable, Buffer> Unpin for NullArray<T, Nullable, Buffer>
impl<T, Nullable, Buffer> UnwindSafe for NullArray<T, Nullable, Buffer>
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