Skip to main content

Array

Struct Array 

Source
pub struct Array<V: VTable> { /* private fields */ }
Expand description

A typed owned handle to an array.

Array<V> holds an ArrayRef (shared, heap-allocated) and provides typed access to the encoding-specific data via Deref to V::ArrayData.

This is the primary type for working with typed arrays. Convert to ArrayRef via into_array() or AsRef<ArrayRef>.

Implementations§

Source§

impl<V: VTable> Array<V>

Source

pub fn try_from_parts(new: ArrayParts<V>) -> VortexResult<Self>

Create a typed array from explicit construction parameters.

Source

pub fn try_from_array_ref(array: ArrayRef) -> Result<Self, ArrayRef>

Try to create from an ArrayRef, returning Err if the type doesn’t match.

Source

pub fn dtype(&self) -> &DType

Returns the dtype.

Source

pub fn len(&self) -> usize

Returns the length.

Source

pub fn is_empty(&self) -> bool

Returns whether this array is empty.

Source

pub fn encoding_id(&self) -> ArrayId

Returns the encoding ID.

Source

pub fn statistics(&self) -> StatsSetRef<'_>

Returns the statistics.

Source

pub fn data(&self) -> &V::ArrayData

Returns a reference to the encoding-specific data.

Source

pub fn try_into_parts(self) -> Result<ArrayParts<V>, Self>

Returns the full typed array construction parts if this handle owns the allocation.

Source

pub fn with_stats_set(self, stats: StatsSet) -> Self

Source

pub fn into_data(self) -> V::ArrayData

Returns a clone of the inner encoding-specific data.

Source

pub fn slots(&self) -> &[Option<ArrayRef>]

Returns the array slots.

Source

pub fn as_array(&self) -> &ArrayRef

Returns the internal ArrayRef.

Source

pub fn as_view(&self) -> ArrayView<'_, V>

Returns an ArrayView borrowing this array’s data.

Source§

impl<V: VTable> Array<V>

Public API methods that shadow DynArray / ArrayRef methods.

Source

pub fn slice(&self, range: Range<usize>) -> VortexResult<ArrayRef>

Source

pub fn scalar_at(&self, index: usize) -> VortexResult<Scalar>

Source

pub fn filter(&self, mask: Mask) -> VortexResult<ArrayRef>

Source

pub fn take(&self, indices: ArrayRef) -> VortexResult<ArrayRef>

Source

pub fn validity(&self) -> VortexResult<Validity>

Source

pub fn is_valid(&self, index: usize) -> VortexResult<bool>

Source

pub fn is_invalid(&self, index: usize) -> VortexResult<bool>

Source

pub fn all_valid(&self) -> VortexResult<bool>

Source

pub fn all_invalid(&self) -> VortexResult<bool>

Source

pub fn to_canonical(&self) -> VortexResult<Canonical>

Source

pub fn nbytes(&self) -> u64

Source

pub fn nbuffers(&self) -> usize

Source

pub fn as_constant(&self) -> Option<Scalar>

Source

pub fn valid_count(&self) -> VortexResult<usize>

Source

pub fn invalid_count(&self) -> VortexResult<usize>

Source

pub fn append_to_builder( &self, builder: &mut dyn ArrayBuilder, ctx: &mut ExecutionCtx, ) -> VortexResult<()>

Source

pub fn validity_mask(&self) -> VortexResult<Mask>

Source§

impl Array<Bool>

Constructors and consuming methods for BoolArray (Array<Bool>).

Source

pub fn new(bits: BitBuffer, validity: Validity) -> Self

Constructs a new BoolArray.

§Panics

Panics if the validity length is not equal to the bit buffer length.

Source

pub fn new_handle( handle: BufferHandle, offset: usize, len: usize, validity: Validity, ) -> Self

Constructs a new BoolArray from a BufferHandle.

§Panics

Panics if the validity length is not equal to the bit buffer length.

Source

pub fn try_new(bits: BitBuffer, validity: Validity) -> VortexResult<Self>

Constructs a new BoolArray.

§Errors

Returns an error if the provided components do not satisfy the invariants.

Source

pub fn try_new_from_handle( bits: BufferHandle, offset: usize, len: usize, validity: Validity, ) -> VortexResult<Self>

Build a new bool array from a BufferHandle, returning an error if the offset is too large or the buffer is not large enough to hold the values.

Source

pub unsafe fn new_unchecked(bits: BitBuffer, validity: Validity) -> Self

Creates a new BoolArray without validation.

§Safety

The caller must ensure that the validity length is equal to the bit buffer length.

Source

pub fn validate(bits: &BitBuffer, validity: &Validity) -> VortexResult<()>

Validates the components that would be used to create a BoolArray.

Source

pub fn from_indices<I: IntoIterator<Item = usize>>( length: usize, indices: I, validity: Validity, ) -> Self

Create a new BoolArray from a set of indices and a length.

All indices must be less than the length.

Source

pub fn into_bit_buffer(self) -> BitBuffer

Returns the underlying BitBuffer of the array, consuming self.

Source§

impl Array<Bool>

Source

pub fn patch( self, patches: &Patches, ctx: &mut ExecutionCtx, ) -> VortexResult<Self>

Source§

impl Array<Bool>

Source

pub fn opt_bool_vec(&self) -> Vec<Option<bool>>

Source

pub fn bool_vec(&self) -> Vec<bool>

Source§

impl Array<Chunked>

Source

pub fn try_new(chunks: Vec<ArrayRef>, dtype: DType) -> VortexResult<Self>

Constructs a new ChunkedArray.

Source

pub fn rechunk( &self, target_bytesize: u64, target_rowsize: usize, ) -> VortexResult<Self>

Source

pub unsafe fn new_unchecked(chunks: Vec<ArrayRef>, dtype: DType) -> Self

Creates a new ChunkedArray without validation.

§Safety

All chunks must have exactly the same DType as the provided dtype.

Source§

impl Array<Constant>

Source

pub fn new<S>(scalar: S, len: usize) -> Self
where S: Into<Scalar>,

Source§

impl Array<Decimal>

Source§

impl Array<Decimal>

Source

pub fn new<T: NativeDecimalType>( buffer: Buffer<T>, decimal_dtype: DecimalDType, validity: Validity, ) -> Self

Creates a new DecimalArray using a host-native buffer.

Source

pub unsafe fn new_unchecked<T: NativeDecimalType>( buffer: Buffer<T>, decimal_dtype: DecimalDType, validity: Validity, ) -> Self

Creates a new DecimalArray without validation.

§Safety

See DecimalData::new_unchecked.

Source

pub fn try_new<T: NativeDecimalType>( buffer: Buffer<T>, decimal_dtype: DecimalDType, validity: Validity, ) -> VortexResult<Self>

Creates a new DecimalArray from a host-native buffer with validation.

Source

pub fn from_iter<T: NativeDecimalType, I: IntoIterator<Item = T>>( iter: I, decimal_dtype: DecimalDType, ) -> Self

Creates a new DecimalArray from an iterator of values.

Source

pub fn from_option_iter<T: NativeDecimalType, I: IntoIterator<Item = Option<T>>>( iter: I, decimal_dtype: DecimalDType, ) -> Self

Creates a new DecimalArray from an iterator of optional values.

Source

pub fn new_handle( values: BufferHandle, values_type: DecimalType, decimal_dtype: DecimalDType, validity: Validity, ) -> Self

Creates a new DecimalArray from a BufferHandle.

Source

pub fn try_new_handle( values: BufferHandle, values_type: DecimalType, decimal_dtype: DecimalDType, validity: Validity, ) -> VortexResult<Self>

Creates a new DecimalArray from a BufferHandle with validation.

Source

pub unsafe fn new_unchecked_handle( values: BufferHandle, values_type: DecimalType, decimal_dtype: DecimalDType, validity: Validity, ) -> Self

Creates a new DecimalArray without validation from a BufferHandle.

§Safety

See DecimalData::new_unchecked_handle.

Source

pub fn patch( self, patches: &Patches, ctx: &mut ExecutionCtx, ) -> VortexResult<Self>

Source§

impl Array<Dict>

Source

pub fn new(codes: ArrayRef, values: ArrayRef) -> Self

Build a new DictArray from its components, codes and values.

Source

pub fn try_new(codes: ArrayRef, values: ArrayRef) -> VortexResult<Self>

Build a new DictArray from its components, codes and values.

Source

pub unsafe fn new_unchecked(codes: ArrayRef, values: ArrayRef) -> Self

Build a new DictArray without validating the codes or values.

§Safety

See DictData::new_unchecked.

Source

pub unsafe fn set_all_values_referenced( self, all_values_referenced: bool, ) -> Self

Set whether all values in the dictionary are referenced by at least one code.

§Safety

See DictData::set_all_values_referenced.

Source§

impl Array<Extension>

Source

pub fn new(ext_dtype: ExtDTypeRef, storage_array: ArrayRef) -> Self

Constructs a new ExtensionArray.

§Panics

Panics if the storage array is not compatible with the extension dtype.

Source

pub fn try_new( ext_dtype: ExtDTypeRef, storage_array: ArrayRef, ) -> VortexResult<Self>

Tries to construct a new ExtensionArray.

Source§

impl Array<Filter>

Source

pub fn new(array: ArrayRef, mask: Mask) -> Self

Creates a new FilterArray.

Source

pub fn try_new(array: ArrayRef, mask: Mask) -> VortexResult<Self>

Constructs a new FilterArray.

Source§

impl Array<FixedSizeList>

Source

pub fn new( elements: ArrayRef, list_size: u32, validity: Validity, len: usize, ) -> Self

Creates a new FixedSizeListArray.

Source

pub fn try_new( elements: ArrayRef, list_size: u32, validity: Validity, len: usize, ) -> VortexResult<Self>

Constructs a new FixedSizeListArray.

Source

pub unsafe fn new_unchecked( elements: ArrayRef, list_size: u32, validity: Validity, len: usize, ) -> Self

Creates a new FixedSizeListArray without validation.

§Safety

See FixedSizeListData::new_unchecked.

Source

pub fn into_data_parts(self) -> FixedSizeListDataParts

Source§

impl Array<List>

Source

pub fn new(elements: ArrayRef, offsets: ArrayRef, validity: Validity) -> Self

Creates a new ListArray.

Source

pub fn try_new( elements: ArrayRef, offsets: ArrayRef, validity: Validity, ) -> VortexResult<Self>

Constructs a new ListArray.

Source

pub unsafe fn new_unchecked( elements: ArrayRef, offsets: ArrayRef, validity: Validity, ) -> Self

Creates a new ListArray without validation.

§Safety

See ListData::new_unchecked.

Source

pub fn into_data_parts(self) -> ListDataParts

Source§

impl Array<List>

Source

pub fn from_iter_slow<O: IntegerPType, I: IntoIterator>( iter: I, dtype: Arc<DType>, ) -> VortexResult<ArrayRef>

This is a convenience method to create a list array from an iterator of iterators. This method is slow however since each element is first converted to a scalar and then appended to the array.

Source

pub fn from_iter_opt_slow<O: IntegerPType, I: IntoIterator<Item = Option<T>>, T>( iter: I, dtype: Arc<DType>, ) -> VortexResult<ArrayRef>
where T: IntoIterator, T::Item: Into<Scalar>,

Source§

impl Array<ListView>

Source

pub fn new( elements: ArrayRef, offsets: ArrayRef, sizes: ArrayRef, validity: Validity, ) -> Self

Creates a new ListViewArray.

Source

pub fn try_new( elements: ArrayRef, offsets: ArrayRef, sizes: ArrayRef, validity: Validity, ) -> VortexResult<Self>

Constructs a new ListViewArray.

Source

pub unsafe fn new_unchecked( elements: ArrayRef, offsets: ArrayRef, sizes: ArrayRef, validity: Validity, ) -> Self

Creates a new ListViewArray without validation.

§Safety

See ListViewData::new_unchecked.

Source

pub unsafe fn with_zero_copy_to_list(self, is_zctl: bool) -> Self

Mark whether this list view can be zero-copy converted to a list.

§Safety

See ListViewData::with_zero_copy_to_list.

Source

pub fn into_data_parts(self) -> ListViewDataParts

Source§

impl Array<ListView>

Source

pub fn rebuild(&self, mode: ListViewRebuildMode) -> VortexResult<ListViewArray>

Rebuilds the ListViewArray according to the specified mode.

Source§

impl Array<Masked>

Source

pub fn try_new(child: ArrayRef, validity: Validity) -> VortexResult<Self>

Constructs a new MaskedArray.

Source§

impl Array<Null>

Source

pub fn new(len: usize) -> Self

Source§

impl Array<Primitive>

Source

pub fn from_option_iter<T: NativePType, I: IntoIterator<Item = Option<T>>>( iter: I, ) -> Self

Create a PrimitiveArray from an iterator of T. NOTE: we cannot impl FromIterator trait since it conflicts with FromIterator<T>.

Source

pub fn to_buffer<T: NativePType>(&self) -> Buffer<T>

Get a buffer in host memory holding all the values.

NOTE: some values may be nonsense if the validity buffer indicates that the value is null.

Source

pub fn into_buffer<T: NativePType>(self) -> Buffer<T>

Consume the array and get a host Buffer containing the data values.

Source

pub fn into_buffer_mut<T: NativePType>(self) -> BufferMut<T>

Extract a mutable buffer from the PrimitiveArray. Attempts to do this with zero-copy if the buffer is uniquely owned, otherwise will make a copy.

Source

pub fn try_into_buffer_mut<T: NativePType>( self, ) -> Result<BufferMut<T>, Buffer<T>>

Try to extract a mutable buffer from the PrimitiveArray with zero copy.

Source§

impl Array<Primitive>

Source

pub fn patch( self, patches: &Patches, ctx: &mut ExecutionCtx, ) -> VortexResult<Self>

Source§

impl Array<Primitive>

Source

pub fn top_value(&self) -> VortexResult<Option<(PValue, usize)>>

Compute most common present value of this array

Source§

impl Array<Primitive>

Source

pub fn empty<T: NativePType>(nullability: Nullability) -> Self

Source

pub fn new<T: NativePType>( buffer: impl Into<Buffer<T>>, validity: Validity, ) -> Self

Creates a new PrimitiveArray.

§Panics

Panics if the provided components do not satisfy the invariants.

Source

pub fn try_new<T: NativePType>( buffer: Buffer<T>, validity: Validity, ) -> VortexResult<Self>

Constructs a new PrimitiveArray.

Source

pub unsafe fn new_unchecked<T: NativePType>( buffer: Buffer<T>, validity: Validity, ) -> Self

Creates a new PrimitiveArray without validation.

§Safety

See PrimitiveData::new_unchecked.

Source

pub unsafe fn new_unchecked_from_handle( handle: BufferHandle, ptype: PType, validity: Validity, ) -> Self

Create a new array from a buffer handle.

§Safety

See PrimitiveData::new_unchecked_from_handle.

Source

pub fn from_buffer_handle( handle: BufferHandle, ptype: PType, validity: Validity, ) -> Self

Creates a new PrimitiveArray from a BufferHandle.

Source

pub fn from_byte_buffer( buffer: ByteBuffer, ptype: PType, validity: Validity, ) -> Self

Creates a new PrimitiveArray from a ByteBuffer.

Source

pub fn from_values_byte_buffer( valid_elems_buffer: ByteBuffer, ptype: PType, validity: Validity, n_rows: usize, ) -> Self

Create a PrimitiveArray from a byte buffer containing only the valid elements.

Source

pub fn validate<T: NativePType>( buffer: &Buffer<T>, validity: &Validity, ) -> VortexResult<()>

Validates the components that would be used to create a PrimitiveArray.

Source

pub fn into_data_parts(self) -> PrimitiveDataParts

Source

pub fn map_each_with_validity<T, R, F>(self, f: F) -> VortexResult<Self>
where T: NativePType, R: NativePType, F: FnMut((T, bool)) -> R,

Source§

impl Array<ScalarFnVTable>

Source

pub fn try_new( scalar_fn: ScalarFnRef, children: Vec<ArrayRef>, len: usize, ) -> VortexResult<Self>

Create a new ScalarFnArray from a scalar function and its children.

Source§

impl Array<Shared>

Source

pub fn new(source: ArrayRef) -> Self

Creates a new SharedArray.

Source§

impl Array<Slice>

Source

pub fn try_new(child: ArrayRef, range: Range<usize>) -> VortexResult<Self>

Constructs a new SliceArray.

Source

pub fn new(child: ArrayRef, range: Range<usize>) -> Self

Constructs a new SliceArray.

Source§

impl Array<Struct>

Source

pub fn new( names: FieldNames, fields: impl Into<Arc<[ArrayRef]>>, length: usize, validity: Validity, ) -> Self

Creates a new StructArray.

Source

pub fn try_new( names: FieldNames, fields: impl Into<Arc<[ArrayRef]>>, length: usize, validity: Validity, ) -> VortexResult<Self>

Constructs a new StructArray.

Source

pub unsafe fn new_unchecked( fields: impl Into<Arc<[ArrayRef]>>, dtype: StructFields, length: usize, validity: Validity, ) -> Self

Creates a new StructArray without validation.

§Safety

Caller must ensure the field arrays match the supplied dtype, length, and validity.

Source

pub fn try_new_with_dtype( fields: impl Into<Arc<[ArrayRef]>>, dtype: StructFields, length: usize, validity: Validity, ) -> VortexResult<Self>

Constructs a new StructArray with an explicit dtype.

Source

pub fn from_fields<N: AsRef<str>>(items: &[(N, ArrayRef)]) -> VortexResult<Self>

Construct a StructArray from named fields.

Source

pub fn try_from_iter_with_validity<N: AsRef<str>, A: IntoArray, T: IntoIterator<Item = (N, A)>>( iter: T, validity: Validity, ) -> VortexResult<Self>

Create a StructArray from an iterator of (name, array) pairs with validity.

Source

pub fn try_from_iter<N: AsRef<str>, A: IntoArray, T: IntoIterator<Item = (N, A)>>( iter: T, ) -> VortexResult<Self>

Create a StructArray from an iterator of (name, array) pairs.

Source

pub fn project(&self, projection: &[FieldName]) -> VortexResult<Self>

Return a new StructArray with the given projection applied.

Projection does not copy data arrays. Projection is defined by an ordinal array slice which specifies the new ordering of columns in the struct. The projection can be used to perform column re-ordering, deletion, or duplication at a logical level, without any data copying.

Source

pub fn new_fieldless_with_len(len: usize) -> Self

Create a fieldless StructArray with the given length.

Source

pub fn into_data_parts(self) -> StructDataParts

Source

pub fn remove_column( &self, name: impl Into<FieldName>, ) -> Option<(Self, ArrayRef)>

Source§

impl Array<Struct>

Source

pub fn with_column( &self, name: impl Into<FieldName>, array: ArrayRef, ) -> VortexResult<Self>

Source

pub fn remove_column_owned( &self, name: impl Into<FieldName>, ) -> Option<(Self, ArrayRef)>

Source§

impl Array<VarBin>

Forwarding constructors for VarBinArray (= Array<VarBin>).

Source

pub fn from_vec<T: AsRef<[u8]>>(vec: Vec<T>, dtype: DType) -> Self

Source

pub fn from_iter<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>( iter: I, dtype: DType, ) -> Self

Source

pub fn from_iter_nonnull<T: AsRef<[u8]>, I: IntoIterator<Item = T>>( iter: I, dtype: DType, ) -> Self

Source

pub fn from_strs(value: Vec<&str>) -> Self

Create from a vector of string slices.

Source

pub fn from_nullable_strs(value: Vec<Option<&str>>) -> Self

Create from a vector of optional string slices.

Source

pub fn from_bytes(value: Vec<&[u8]>) -> Self

Create from a vector of byte slices.

Source

pub fn from_nullable_bytes(value: Vec<Option<&[u8]>>) -> Self

Create from a vector of optional byte slices.

Source

pub fn into_data_parts(self) -> VarBinDataParts

Source§

impl Array<VarBin>

Source

pub fn new( offsets: ArrayRef, bytes: ByteBuffer, dtype: DType, validity: Validity, ) -> Self

Creates a new VarBinArray.

Source

pub unsafe fn new_unchecked( offsets: ArrayRef, bytes: ByteBuffer, dtype: DType, validity: Validity, ) -> Self

Creates a new VarBinArray without validation.

§Safety

See VarBinData::new_unchecked.

Source

pub unsafe fn new_unchecked_from_handle( offsets: ArrayRef, bytes: BufferHandle, dtype: DType, validity: Validity, ) -> Self

Creates a new VarBinArray without validation from a BufferHandle.

§Safety

See VarBinData::new_unchecked_from_handle.

Source

pub fn try_new( offsets: ArrayRef, bytes: ByteBuffer, dtype: DType, validity: Validity, ) -> VortexResult<Self>

Constructs a new VarBinArray.

Source§

impl Array<VarBinView>

Source

pub fn from_iter<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>( iter: I, dtype: DType, ) -> Self

Construct a VarBinViewArray from an iterator of optional byte slices.

Source

pub fn from_iter_str<T: AsRef<str>, I: IntoIterator<Item = T>>(iter: I) -> Self

Source

pub fn from_iter_nullable_str<T: AsRef<str>, I: IntoIterator<Item = Option<T>>>( iter: I, ) -> Self

Source

pub fn from_iter_bin<T: AsRef<[u8]>, I: IntoIterator<Item = T>>(iter: I) -> Self

Source

pub fn from_iter_nullable_bin<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>( iter: I, ) -> Self

Source

pub fn try_new( views: Buffer<BinaryView>, buffers: Arc<[ByteBuffer]>, dtype: DType, validity: Validity, ) -> VortexResult<Self>

Creates a new VarBinViewArray.

Source

pub unsafe fn new_unchecked( views: Buffer<BinaryView>, buffers: Arc<[ByteBuffer]>, dtype: DType, validity: Validity, ) -> Self

Creates a new VarBinViewArray without validation.

§Safety

See VarBinViewData::new_unchecked.

Source

pub fn new_handle( views: BufferHandle, buffers: Arc<[BufferHandle]>, dtype: DType, validity: Validity, ) -> Self

Creates a new VarBinViewArray with device or host memory.

Source

pub unsafe fn new_handle_unchecked( views: BufferHandle, buffers: Arc<[BufferHandle]>, dtype: DType, validity: Validity, ) -> Self

Construct a new array from BufferHandles without validation.

§Safety

See VarBinViewData::new_handle_unchecked.

Source

pub fn into_data_parts(self) -> VarBinViewDataParts

Source§

impl Array<VarBinView>

Source

pub fn compact_buffers(&self) -> VortexResult<VarBinViewArray>

Returns a compacted copy of the input array, where all wasted space has been cleaned up. This operation can be very expensive, in the worst case copying all existing string data into a new allocation.

After slicing/taking operations VarBinViewArrays can continue to hold references to buffers that are no longer visible. We detect when there is wasted space in any of the buffers, and if so, will aggressively compact all visible outlined string data into new buffers while keeping well-utilized buffers unchanged.

Source

pub fn compact_with_threshold( &self, buffer_utilization_threshold: f64, ) -> VortexResult<VarBinViewArray>

Returns a compacted copy of the input array using selective buffer compaction.

This method analyzes each buffer’s utilization and applies one of three strategies:

  • KeepFull (zero-copy): Well-utilized buffers are kept unchanged
  • Slice (zero-copy): Buffers with contiguous ranges of used data are sliced to that range
  • Rewrite: Poorly-utilized buffers have their data copied to new compact buffers

By preserving or slicing well-utilized buffers, compaction becomes zero-copy in many cases.

§Arguments
  • buffer_utilization_threshold - Threshold in range [0, 1]. Buffers with utilization below this value will be compacted. Use 0.0 for no compaction, 1.0 for aggressive compaction of any buffer with wasted space.
Source§

impl Array<Variant>

Source

pub fn new(child: ArrayRef) -> Self

Creates a new VariantArray.

Source§

impl Array<Struct>

Trait Implementations§

Source§

impl<V: VTable> AsRef<ArrayRef> for Array<V>

Source§

fn as_ref(&self) -> &ArrayRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<V: VTable> Clone for Array<V>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V: VTable> Debug for Array<V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V: VTable> Deref for Array<V>

Source§

type Target = <V as VTable>::ArrayData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &V::ArrayData

Dereferences the value.
Source§

impl<V: VTable> From<Array<V>> for ArrayRef

Source§

fn from(value: Array<V>) -> ArrayRef

Converts to this type from the input type.
Source§

impl From<Vec<&[u8]>> for Array<VarBin>

Source§

fn from(value: Vec<&[u8]>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<&str>> for Array<VarBin>

Source§

fn from(value: Vec<&str>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<&[u8]>>> for Array<VarBin>

Source§

fn from(value: Vec<Option<&[u8]>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<&str>>> for Array<VarBin>

Source§

fn from(value: Vec<Option<&str>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<String>>> for Array<VarBin>

Source§

fn from(value: Vec<Option<String>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<Vec<u8>>>> for Array<VarBin>

Source§

fn from(value: Vec<Option<Vec<u8>>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<String>> for Array<VarBin>

Source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec<u8>>> for Array<VarBin>

Source§

fn from(value: Vec<Vec<u8>>) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<ArrayRef> for Array<Chunked>

Source§

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

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<Option<&'a [u8]>> for Array<VarBin>

Source§

fn from_iter<T: IntoIterator<Item = Option<&'a [u8]>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<Option<&'a [u8]>> for Array<VarBinView>

Source§

fn from_iter<T: IntoIterator<Item = Option<&'a [u8]>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<Option<&'a str>> for Array<VarBin>

Source§

fn from_iter<T: IntoIterator<Item = Option<&'a str>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<Option<&'a str>> for Array<VarBinView>

Source§

fn from_iter<T: IntoIterator<Item = Option<&'a str>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromIterator<Option<String>> for Array<VarBin>

Source§

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

Creates a value from an iterator. Read more
Source§

impl FromIterator<Option<String>> for Array<VarBinView>

Source§

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

Creates a value from an iterator. Read more
Source§

impl FromIterator<Option<Vec<u8>>> for Array<VarBin>

Source§

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

Creates a value from an iterator. Read more
Source§

impl FromIterator<Option<Vec<u8>>> for Array<VarBinView>

Source§

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

Creates a value from an iterator. Read more
Source§

impl<V: VTable> IntoArray for Array<V>

Source§

impl TryFrom<Array<Extension>> for TemporalData

Source§

type Error = VortexError

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

fn try_from(ext: ExtensionArray) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<V: VTable> TypedArrayRef<V> for Array<V>

Source§

fn to_owned(&self) -> Array<V>

Returns an owned Array<V> from the reference.

Auto Trait Implementations§

§

impl<V> Freeze for Array<V>

§

impl<V> !RefUnwindSafe for Array<V>

§

impl<V> Send for Array<V>

§

impl<V> Sync for Array<V>

§

impl<V> Unpin for Array<V>
where V: Unpin,

§

impl<V> UnsafeUnpin for Array<V>

§

impl<V> !UnwindSafe for Array<V>

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> BoolArrayExt for T
where T: TypedArrayRef<Bool>,

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> ChunkedArrayExt for T

Source§

fn chunk_offsets_array(&self) -> &ArrayRef

Source§

fn nchunks(&self) -> usize

Source§

fn chunk(&self, idx: usize) -> &ArrayRef

Source§

fn iter_chunks<'a>(&'a self) -> Box<dyn Iterator<Item = &'a ArrayRef> + 'a>

Source§

fn chunks(&self) -> Vec<ArrayRef>

Source§

fn non_empty_chunks<'a>(&'a self) -> Box<dyn Iterator<Item = &'a ArrayRef> + 'a>

Source§

fn chunk_offsets(&self) -> &[usize]

Source§

fn find_chunk_idx(&self, index: usize) -> VortexResult<(usize, usize)>

Source§

fn array_iterator(&self) -> impl ArrayIterator + '_

Source§

fn array_stream(&self) -> impl ArrayStream + '_

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DecimalArrayExt for T

Source§

impl<T> DictArrayExt for T
where T: TypedArrayRef<Dict>,

Source§

impl<T> DictArraySlotsExt for T
where T: TypedArrayRef<Dict>,

Source§

fn codes(&self) -> &ArrayRef

Source§

fn values(&self) -> &ArrayRef

Source§

fn slots_view(&self) -> DictSlotsView<'_>

Returns a borrowed view of all slots.
Source§

impl<T> ExtensionArrayExt for T

Source§

impl<T> FilterArrayExt for T

Source§

fn child(&self) -> &ArrayRef

Source§

impl<T> FixedSizeListArrayExt for T

Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ListArrayExt for T
where T: TypedArrayRef<List>,

Source§

impl<T> ListViewArrayExt for T

Source§

impl<T> MaskedArrayExt for T

Source§

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

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1:

renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> PatchedArrayExt for T

Source§

impl<T> PatchedArraySlotsExt for T

Source§

fn inner(&self) -> &ArrayRef

Source§

fn lane_offsets(&self) -> &ArrayRef

Source§

fn patch_indices(&self) -> &ArrayRef

Source§

fn patch_values(&self) -> &ArrayRef

Source§

fn slots_view(&self) -> PatchedSlotsView<'_>

Returns a borrowed view of all slots.
Source§

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

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> PrimitiveArrayExt for T

Source§

fn ptype(&self) -> PType

Source§

fn nullability(&self) -> Nullability

Source§

fn validity_child(&self) -> Option<&ArrayRef>

Source§

fn validity(&self) -> Validity

Source§

fn validity_mask(&self) -> Mask

Source§

fn buffer_handle(&self) -> &BufferHandle

Source§

fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray

Source§

fn narrow(&self) -> VortexResult<PrimitiveArray>

Narrow the array to the smallest possible integer type that can represent all values.
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ScalarFnArrayExt for T

Source§

fn scalar_fn(&self) -> &ScalarFnRef

Source§

fn child_at(&self, idx: usize) -> &ArrayRef

Source§

fn child_count(&self) -> usize

Source§

fn nchildren(&self) -> usize

Source§

fn get_child(&self, idx: usize) -> &ArrayRef

Source§

fn iter_children(&self) -> impl Iterator<Item = &ArrayRef> + '_

Source§

fn children(&self) -> Vec<ArrayRef>

Source§

impl<T> SessionVar for T
where T: Send + Sync + Debug + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

impl<T> SharedArrayExt for T

Source§

impl<T> SliceArrayExt for T
where T: TypedArrayRef<Slice>,

Source§

fn child(&self) -> &ArrayRef

Source§

impl<T> StructArrayExt for T

Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> VarBinArrayExt for T

Source§

impl<T> VarBinViewArrayExt for T

Source§

impl<T> VariantArrayExt for T

Source§

fn child(&self) -> &ArrayRef

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more