Struct narrow::array::FixedSizeBinaryArray
source · pub struct FixedSizeBinaryArray<const N: usize, const NULLABLE: bool = false, Buffer: BufferType = VecBuffer>(/* private fields */)
where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>;
Expand description
Array with fixed-size binary elements.
Implementations§
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray<N, NULLABLE, Buffer>: Index + Length,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray<N, NULLABLE, Buffer>: Index + Length,
sourcepub fn iter(&self) -> FixedSizeBinaryIter<'_, N, NULLABLE, Buffer> ⓘ
pub fn iter(&self) -> FixedSizeBinaryIter<'_, N, NULLABLE, Buffer> ⓘ
Returns an iterator over items in this FixedSizeListArray
.
Trait Implementations§
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Array for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
[u8; N]: Nullability<NULLABLE>,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Array for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
[u8; N]: Nullability<NULLABLE>,
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Array for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
[u8; N]: Nullability<NULLABLE>,
Available on crate feature arrow-rs
only.
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Array for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
[u8; N]: Nullability<NULLABLE>,
Available on crate feature
arrow-rs
only.source§impl<const N: usize, Buffer: BufferType> BitmapRef for FixedSizeBinaryArray<N, true, Buffer>
impl<const N: usize, Buffer: BufferType> BitmapRef for FixedSizeBinaryArray<N, true, Buffer>
source§impl<const N: usize, Buffer: BufferType> BitmapRefMut for FixedSizeBinaryArray<N, true, Buffer>
impl<const N: usize, Buffer: BufferType> BitmapRefMut for FixedSizeBinaryArray<N, true, Buffer>
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Default for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Default,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Default for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Default,
source§impl<T, const N: usize, Buffer: BufferType> Extend<Option<T>> for FixedSizeBinaryArray<N, true, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: Extend<Option<[u8; N]>>,
impl<T, const N: usize, Buffer: BufferType> Extend<Option<T>> for FixedSizeBinaryArray<N, true, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: Extend<Option<[u8; N]>>,
source§fn extend<I: IntoIterator<Item = Option<T>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Option<T>>>(&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, const N: usize, Buffer: BufferType> Extend<T> for FixedSizeBinaryArray<N, false, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>: Extend<[u8; N]>,
impl<T, const N: usize, Buffer: BufferType> Extend<T> for FixedSizeBinaryArray<N, false, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>: Extend<[u8; N]>,
source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&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<const N: usize, const NULLABLE: bool, Buffer: BufferType> From<Arc<dyn Array>> for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
Self: From<FixedSizeBinaryArray>,
Available on crate feature arrow-rs
only.
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> From<Arc<dyn Array>> for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
Self: From<FixedSizeBinaryArray>,
Available on crate feature
arrow-rs
only.source§impl<const NULLABLE: bool, const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, NULLABLE, Buffer>> for Arc<dyn Array>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray: From<FixedSizeBinaryArray<N, NULLABLE, Buffer>>,
Available on crate feature arrow-rs
only.
impl<const NULLABLE: bool, const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, NULLABLE, Buffer>> for Arc<dyn Array>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray: From<FixedSizeBinaryArray<N, NULLABLE, Buffer>>,
Available on crate feature
arrow-rs
only.source§fn from(value: FixedSizeBinaryArray<N, NULLABLE, Buffer>) -> Self
fn from(value: FixedSizeBinaryArray<N, NULLABLE, Buffer>) -> Self
Converts to this type from the input type.
source§impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, false, Buffer>> for FixedSizeBinaryArray
Available on crate feature arrow-rs
only.
impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, false, Buffer>> for FixedSizeBinaryArray
Available on crate feature
arrow-rs
only.source§fn from(value: FixedSizeBinaryArray<N, false, Buffer>) -> Self
fn from(value: FixedSizeBinaryArray<N, false, Buffer>) -> Self
Converts to this type from the input type.
source§impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, false, Buffer>> for FixedSizeBinaryArray<N, true, Buffer>where
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: From<FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>>,
impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, false, Buffer>> for FixedSizeBinaryArray<N, true, Buffer>where
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: From<FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>>,
source§fn from(value: FixedSizeBinaryArray<N, false, Buffer>) -> Self
fn from(value: FixedSizeBinaryArray<N, false, Buffer>) -> Self
Converts to this type from the input type.
source§impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, true, Buffer>> for FixedSizeBinaryArraywhere
PrimitiveArray<UInt8Type>: From<FixedSizePrimitiveArray<u8, false, Buffer>>,
Bitmap<Buffer>: Into<NullBuffer>,
Available on crate feature arrow-rs
only.
impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray<N, true, Buffer>> for FixedSizeBinaryArraywhere
PrimitiveArray<UInt8Type>: From<FixedSizePrimitiveArray<u8, false, Buffer>>,
Bitmap<Buffer>: Into<NullBuffer>,
Available on crate feature
arrow-rs
only.source§fn from(value: FixedSizeBinaryArray<N, true, Buffer>) -> Self
fn from(value: FixedSizeBinaryArray<N, true, Buffer>) -> Self
Converts to this type from the input type.
source§impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray> for FixedSizeBinaryArray<N, false, Buffer>
Available on crate feature arrow-rs
only.
impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray> for FixedSizeBinaryArray<N, false, Buffer>
Available on crate feature
arrow-rs
only.Panics when there are nulls
source§fn from(value: FixedSizeBinaryArray) -> Self
fn from(value: FixedSizeBinaryArray) -> Self
Converts to this type from the input type.
source§impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray> for FixedSizeBinaryArray<N, true, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: From<ScalarBuffer<u8>>,
Bitmap<Buffer>: From<NullBuffer> + FromIterator<bool>,
Available on crate feature arrow-rs
only.
impl<const N: usize, Buffer: BufferType> From<FixedSizeBinaryArray> for FixedSizeBinaryArray<N, true, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: From<ScalarBuffer<u8>>,
Bitmap<Buffer>: From<NullBuffer> + FromIterator<bool>,
Available on crate feature
arrow-rs
only.source§fn from(value: FixedSizeBinaryArray) -> Self
fn from(value: FixedSizeBinaryArray) -> Self
Converts to this type from the input type.
source§impl<T, const N: usize, Buffer: BufferType> FromIterator<Option<T>> for FixedSizeBinaryArray<N, true, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: FromIterator<Option<[u8; N]>>,
impl<T, const N: usize, Buffer: BufferType> FromIterator<Option<T>> for FixedSizeBinaryArray<N, true, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, true, Buffer>: FromIterator<Option<[u8; N]>>,
source§impl<T, const N: usize, Buffer: BufferType> FromIterator<T> for FixedSizeBinaryArray<N, false, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>: FromIterator<[u8; N]>,
impl<T, const N: usize, Buffer: BufferType> FromIterator<T> for FixedSizeBinaryArray<N, false, Buffer>where
T: Into<[u8; N]>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>: FromIterator<[u8; N]>,
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Index for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Index,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Index for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Index,
source§type Item<'a> = <FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer> as Index>::Item<'a>
where
Self: 'a
type Item<'a> = <FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, 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<'a, const N: usize, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray<N, NULLABLE, Buffer>: Index + Length,
impl<'a, const N: usize, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryArray<N, NULLABLE, Buffer>: Index + Length,
source§type Item = <FixedSizeBinaryArray<N, NULLABLE, Buffer> as Index>::Item<'a>
type Item = <FixedSizeBinaryArray<N, NULLABLE, Buffer> as Index>::Item<'a>
The type of the elements being iterated over.
source§type IntoIter = FixedSizeBinaryIter<'a, N, NULLABLE, Buffer>
type IntoIter = FixedSizeBinaryIter<'a, N, NULLABLE, Buffer>
Which kind of iterator are we turning this into?
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> IntoIterator for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryIntoIter<N, NULLABLE, Buffer>: Iterator,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> IntoIterator for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeBinaryIntoIter<N, NULLABLE, Buffer>: Iterator,
source§type Item = <FixedSizeBinaryIntoIter<N, NULLABLE, Buffer> as Iterator>::Item
type Item = <FixedSizeBinaryIntoIter<N, NULLABLE, Buffer> as Iterator>::Item
The type of the elements being iterated over.
source§type IntoIter = FixedSizeBinaryIntoIter<N, NULLABLE, Buffer>
type IntoIter = FixedSizeBinaryIntoIter<N, NULLABLE, Buffer>
Which kind of iterator are we turning this into?
source§impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Length for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Length,
impl<const N: usize, const NULLABLE: bool, Buffer: BufferType> Length for FixedSizeBinaryArray<N, NULLABLE, Buffer>where
FixedSizePrimitiveArray<u8, false, Buffer>: Validity<NULLABLE>,
FixedSizeListArray<N, FixedSizePrimitiveArray<u8, false, Buffer>, NULLABLE, Buffer>: Length,
source§impl<const N: usize, Buffer: BufferType> ValidityBitmap for FixedSizeBinaryArray<N, true, Buffer>
impl<const N: usize, Buffer: BufferType> ValidityBitmap for FixedSizeBinaryArray<N, 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<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !Freeze for FixedSizeBinaryArray<N, NULLABLE, Buffer>
impl<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !RefUnwindSafe for FixedSizeBinaryArray<N, NULLABLE, Buffer>
impl<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !Send for FixedSizeBinaryArray<N, NULLABLE, Buffer>
impl<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !Sync for FixedSizeBinaryArray<N, NULLABLE, Buffer>
impl<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !Unpin for FixedSizeBinaryArray<N, NULLABLE, Buffer>
impl<const N: usize, const NULLABLE: bool = false, Buffer = VecBuffer> !UnwindSafe for FixedSizeBinaryArray<N, 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