Struct narrow::array::StructArray
source · pub struct StructArray<T: StructArrayType, const NULLABLE: bool = false, Buffer: BufferType = VecBuffer>(pub <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>)
where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>;Expand description
Array for product types.
Tuple Fields§
§0: <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>Implementations§
source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> StructArray<T, NULLABLE, Buffer>
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> StructArray<T, NULLABLE, Buffer>
sourcepub fn iter(&self) -> <&Self as IntoIterator>::IntoIter
pub fn iter(&self) -> <&Self as IntoIterator>::IntoIter
Returns an iterator over the items in this StructArray.
Trait Implementations§
source§impl<T, const NULLABLE: bool, Buffer: BufferType> Array for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
T: Nullability<NULLABLE> + StructArrayType,
impl<T, const NULLABLE: bool, Buffer: BufferType> Array for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
T: Nullability<NULLABLE> + StructArrayType,
source§impl<T, const NULLABLE: bool, Buffer: BufferType> Array for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE> + StructArrayTypeFields,
T: Nullability<NULLABLE> + StructArrayType,
Available on crate feature arrow-rs only.
impl<T, const NULLABLE: bool, Buffer: BufferType> Array for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE> + StructArrayTypeFields,
T: Nullability<NULLABLE> + StructArrayType,
Available on crate feature
arrow-rs only.source§impl<T: StructArrayType, Buffer: BufferType> BitmapRef for StructArray<T, true, Buffer>
impl<T: StructArrayType, Buffer: BufferType> BitmapRef for StructArray<T, true, Buffer>
source§impl<T: StructArrayType, Buffer: BufferType> BitmapRefMut for StructArray<T, true, Buffer>
impl<T: StructArrayType, Buffer: BufferType> BitmapRefMut for StructArray<T, true, Buffer>
source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> Default for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Default,
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> Default for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Default,
source§impl<T: StructArrayType, U, Buffer: BufferType> Extend<Option<U>> for StructArray<T, true, Buffer>
impl<T: StructArrayType, U, Buffer: BufferType> Extend<Option<U>> for StructArray<T, true, Buffer>
source§fn extend<I: IntoIterator<Item = Option<U>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Option<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: StructArrayType, U, Buffer: BufferType> Extend<U> for StructArray<T, false, Buffer>
impl<T: StructArrayType, U, Buffer: BufferType> Extend<U> for StructArray<T, false, 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: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<Arc<dyn Array>> for StructArray<T, NULLABLE, Buffer>
Available on crate feature arrow-rs only.
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<Arc<dyn Array>> for StructArray<T, NULLABLE, Buffer>
Available on crate feature
arrow-rs only.source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<RecordBatch> for StructArray<T, NULLABLE, Buffer>
Available on crate feature arrow-rs only.
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<RecordBatch> for StructArray<T, NULLABLE, Buffer>
Available on crate feature
arrow-rs only.source§fn from(value: RecordBatch) -> Self
fn from(value: RecordBatch) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<StructArray<T, NULLABLE, Buffer>> for Arc<dyn Array>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
StructArray: From<StructArray<T, NULLABLE, Buffer>>,
Available on crate feature arrow-rs only.
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<StructArray<T, NULLABLE, Buffer>> for Arc<dyn Array>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
StructArray: From<StructArray<T, NULLABLE, Buffer>>,
Available on crate feature
arrow-rs only.source§fn from(value: StructArray<T, NULLABLE, Buffer>) -> Self
fn from(value: StructArray<T, NULLABLE, Buffer>) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<StructArray<T, NULLABLE, Buffer>> for RecordBatchwhere
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
StructArray: From<StructArray<T, NULLABLE, Buffer>>,
Available on crate feature arrow-rs only.
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> From<StructArray<T, NULLABLE, Buffer>> for RecordBatchwhere
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
StructArray: From<StructArray<T, NULLABLE, Buffer>>,
Available on crate feature
arrow-rs only.source§fn from(value: StructArray<T, NULLABLE, Buffer>) -> Self
fn from(value: StructArray<T, NULLABLE, Buffer>) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, false, Buffer>> for StructArray
Available on crate feature arrow-rs only.
impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, false, Buffer>> for StructArray
Available on crate feature
arrow-rs only.source§fn from(value: StructArray<T, false, Buffer>) -> Self
fn from(value: StructArray<T, false, Buffer>) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, false, Buffer>> for StructArray<T, true, Buffer>
impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, false, Buffer>> for StructArray<T, true, Buffer>
source§fn from(value: StructArray<T, false, Buffer>) -> Self
fn from(value: StructArray<T, false, Buffer>) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, true, Buffer>> for StructArraywhere
<T as StructArrayType>::Array<Buffer>: StructArrayTypeFields + Into<Vec<Arc<dyn Array>>>,
Bitmap<Buffer>: Into<NullBuffer>,
Available on crate feature arrow-rs only.
impl<T: StructArrayType, Buffer: BufferType> From<StructArray<T, true, Buffer>> for StructArraywhere
<T as StructArrayType>::Array<Buffer>: StructArrayTypeFields + Into<Vec<Arc<dyn Array>>>,
Bitmap<Buffer>: Into<NullBuffer>,
Available on crate feature
arrow-rs only.source§fn from(value: StructArray<T, true, Buffer>) -> Self
fn from(value: StructArray<T, true, Buffer>) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, Buffer: BufferType> From<StructArray> for StructArray<T, false, Buffer>
Available on crate feature arrow-rs only.
impl<T: StructArrayType, Buffer: BufferType> From<StructArray> for StructArray<T, false, Buffer>
Available on crate feature
arrow-rs only.source§fn from(value: StructArray) -> Self
fn from(value: StructArray) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, Buffer: BufferType> From<StructArray> for StructArray<T, true, Buffer>where
<T as StructArrayType>::Array<Buffer>: From<Vec<Arc<dyn Array>>>,
Bitmap<Buffer>: From<NullBuffer>,
Available on crate feature arrow-rs only.
impl<T: StructArrayType, Buffer: BufferType> From<StructArray> for StructArray<T, true, Buffer>where
<T as StructArrayType>::Array<Buffer>: From<Vec<Arc<dyn Array>>>,
Bitmap<Buffer>: From<NullBuffer>,
Available on crate feature
arrow-rs only.source§fn from(value: StructArray) -> Self
fn from(value: StructArray) -> Self
Converts to this type from the input type.
source§impl<T: StructArrayType, U, const NULLABLE: bool, Buffer: BufferType> FromIterator<U> for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: FromIterator<U>,
impl<T: StructArrayType, U, const NULLABLE: bool, Buffer: BufferType> FromIterator<U> for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: FromIterator<U>,
source§fn from_iter<I: IntoIterator<Item = U>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = U>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl<'a, T, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a StructArray<T, NULLABLE, Buffer>where
T: Nullability<NULLABLE> + StructArrayType,
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
impl<'a, T, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a StructArray<T, NULLABLE, Buffer>where
T: Nullability<NULLABLE> + StructArrayType,
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
§type Item = <&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
type Item = <&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
The type of the elements being iterated over.
§type IntoIter = <&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
type IntoIter = <&'a <<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
source§impl<T, const NULLABLE: bool, Buffer: BufferType> IntoIterator for StructArray<T, NULLABLE, Buffer>where
T: Nullability<NULLABLE> + StructArrayType,
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
impl<T, const NULLABLE: bool, Buffer: BufferType> IntoIterator for StructArray<T, NULLABLE, Buffer>where
T: Nullability<NULLABLE> + StructArrayType,
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
§type Item = <<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
type Item = <<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
The type of the elements being iterated over.
§type IntoIter = <<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
type IntoIter = <<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
source§impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> Length for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Length,
impl<T: StructArrayType, const NULLABLE: bool, Buffer: BufferType> Length for StructArray<T, NULLABLE, Buffer>where
<T as StructArrayType>::Array<Buffer>: Validity<NULLABLE>,
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Length,
source§impl<T: StructArrayType, Buffer: BufferType> ValidityBitmap for StructArray<T, true, Buffer>
impl<T: StructArrayType, Buffer: BufferType> ValidityBitmap for StructArray<T, true, 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, const NULLABLE: bool, Buffer> Freeze for StructArray<T, NULLABLE, Buffer>
impl<T, const NULLABLE: bool, Buffer> RefUnwindSafe for StructArray<T, NULLABLE, Buffer>where
<<T as StructArrayType>::Array<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: RefUnwindSafe,
impl<T, const NULLABLE: bool, Buffer> Send for StructArray<T, NULLABLE, Buffer>
impl<T, const NULLABLE: bool, Buffer> Sync for StructArray<T, NULLABLE, Buffer>
impl<T, const NULLABLE: bool, Buffer> Unpin for StructArray<T, NULLABLE, Buffer>
impl<T, const NULLABLE: bool, Buffer> UnwindSafe for StructArray<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