pub struct FixedSizeBinaryArray { /* private fields */ }
Expand description

The Arrow’s equivalent to an immutable Vec<Option<[u8; size]>>. Cloning and slicing this struct is O(1).

Implementations

constructs a new iterator

Returns iterator over the values of FixedSizeBinaryArray

Creates a new FixedSizeBinaryArray.

Errors

This function returns an error iff:

Creates a new FixedSizeBinaryArray.

Panics

This function panics iff:

Alias for new

Returns a new empty FixedSizeBinaryArray.

Returns a new null FixedSizeBinaryArray.

Returns a slice of this FixedSizeBinaryArray.

Implementation

This operation is O(1) as it amounts to increase 3 ref counts.

Panics

panics iff offset + length > self.len()

Returns a slice of this FixedSizeBinaryArray.

Implementation

This operation is O(1) as it amounts to increase 3 ref counts.

Safety

The caller must ensure that offset + length <= self.len().

Sets the validity bitmap on this FixedSizeBinaryArray.

Panic

This function panics iff validity.len() != self.len().

Returns the length of this array

The optional validity.

Returns the values allocated on this FixedSizeBinaryArray.

Returns value at position i.

Panic

Panics iff i >= self.len().

Returns the element at index i as &str

Safety

Assumes that the i < self.len.

Returns a new [FixedSizeBinary] with a different logical type. This is O(1).

Panics

Panics iff the data_type is not supported for the physical type.

Returns the size

Creates a FixedSizeBinaryArray from an fallible iterator of optional [u8].

Creates a FixedSizeBinaryArray from an iterator of optional [u8].

Creates a FixedSizeBinaryArray from a slice of arrays of bytes

Creates a new FixedSizeBinaryArray from a slice of optional [u8].

Trait Implementations

Convert to trait object.

The length of the Array. Every array has a length corresponding to the number of elements (slots). Read more

The DataType of the Array. In combination with Array::as_any, this can be used to downcast trait objects (dyn Array) to concrete arrays. Read more

The validity of the Array: every array has an optional Bitmap that, when available specifies whether the array slot is valid or not (null). When the validity is None, all slots are valid. Read more

Slices the Array, returning a new Box<dyn Array>. Read more

Slices the Array, returning a new Box<dyn Array>. Read more

Sets the validity bitmap on this Array. Read more

Clone a &dyn Array to an owned Box<dyn Array>.

whether the array is empty

The number of null slots on this Array. Read more

Returns whether slot i is null. Read more

Returns whether slot i is valid. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.