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,

source

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>,

source§

type Item = <[u8; N] as Nullability<NULLABLE>>::Item

The items stored in this array.
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.
source§

type Array = FixedSizeBinaryArray

The corresponding arrow array
source§

fn as_field(name: &str) -> Field

Returns the field of this array.
source§

impl<const N: usize, Buffer: BufferType> BitmapRef for FixedSizeBinaryArray<N, true, Buffer>

source§

type Buffer = Buffer

The buffer type of the bitmap.
source§

fn bitmap_ref(&self) -> &Bitmap<Self::Buffer>

Returns a reference to an immutable Bitmap.
source§

impl<const N: usize, Buffer: BufferType> BitmapRefMut for FixedSizeBinaryArray<N, true, Buffer>

source§

fn bitmap_ref_mut(&mut self) -> &mut Bitmap<Self::Buffer>

Returns a mutable reference to a Bitmap.
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,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
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]>>,

source§

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)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

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]>,

source§

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)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

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.
source§

fn from(value: Arc<dyn Array>) -> Self

Converts to this type from the input type.
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.
source§

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.
source§

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>>,

source§

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 FixedSizeBinaryArray

Available on crate feature arrow-rs only.
source§

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>
where FixedSizePrimitiveArray<u8, false, Buffer>: From<ScalarBuffer<u8>>,

Available on crate feature arrow-rs only.

Panics when there are nulls

source§

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>

Available on crate feature arrow-rs only.
source§

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]>>,

source§

fn from_iter<I: IntoIterator<Item = Option<T>>>(iter: I) -> Self

Creates a value from an iterator. Read more
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]>,

source§

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,

source§

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<'_>

Returns the value at given index. Skips bound checking. Read more
source§

fn index(&self, index: usize) -> Option<Self::Item<'_>>

Returns the value at given index. Returns None if the index is out of range.
source§

fn index_checked(&self, index: usize) -> Self::Item<'_>

Returns the value at given index. Panics if the index is out of bounds. 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,

source§

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>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
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,

source§

type Item = <FixedSizeBinaryIntoIter<N, NULLABLE, Buffer> as Iterator>::Item

The type of the elements being iterated over.
source§

type IntoIter = FixedSizeBinaryIntoIter<N, NULLABLE, Buffer>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
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,

source§

fn len(&self) -> usize

Returns the number of elements in the collection, also referred to as its length.
source§

fn is_empty(&self) -> bool

Returns true if there are no elements in the collection.
source§

impl<const N: usize, Buffer: BufferType> ValidityBitmap for FixedSizeBinaryArray<N, true, Buffer>

source§

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

Returns true if the element at position index is null, without performing any bounds checking. Read more
source§

fn null_count(&self) -> usize

Returns the number of null elements.
source§

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

Returns true if the element at position index is valid, without performing any bounds checking. Read more
source§

fn valid_count(&self) -> usize

Returns the number of valid elements.
source§

fn any_null(&self) -> bool

Returns true if the array contains at least one null element.
source§

fn all_null(&self) -> bool

Returns true if all the elements are null.
source§

fn any_valid(&self) -> bool

Returns true if the array contains at least one valid element.
source§

fn all_valid(&self) -> bool

Returns true if all the elements are valid.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,