Skip to main content

ArrayRef

Struct ArrayRef 

Source
pub struct ArrayRef(/* private fields */);
Expand description

A reference-counted pointer to a type-erased array.

Implementations§

Source§

impl ArrayRef

Source

pub fn ptr_eq(this: &ArrayRef, other: &ArrayRef) -> bool

Returns true if the two ArrayRefs point to the same allocation.

Source§

impl ArrayRef

Source

pub fn len(&self) -> usize

Returns the length of the array.

Source

pub fn is_empty(&self) -> bool

Returns whether the array is empty (has zero rows).

Source

pub fn dtype(&self) -> &DType

Returns the logical Vortex DType of the array.

Source

pub fn encoding_id(&self) -> ArrayId

Returns the encoding ID of the array.

Source

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

Performs a constant-time slice of the array.

Source

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

Wraps the array in a FilterArray such that it is logically filtered by the given mask.

Source

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

Wraps the array in a DictArray such that it is logically taken by the given indices.

Source

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

Fetch the scalar at the given index.

Source

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

Returns whether the item at index is valid.

Source

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

Returns whether the item at index is invalid.

Source

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

Returns whether all items in the array are valid.

Source

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

Returns whether the array is all invalid.

Source

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

Returns the number of valid elements in the array.

Source

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

Returns the number of invalid elements in the array.

Source

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

Returns the Validity of the array.

Source

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

Returns the canonical validity mask for the array.

Source

pub fn into_canonical(self) -> VortexResult<Canonical>

Returns the canonical representation of the array.

Source

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

Returns the canonical representation of the array.

Source

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

Writes the array into the canonical builder.

Source

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

Returns the statistics of the array.

Source

pub fn is<M: Matcher>(&self) -> bool

Does the array match the given matcher.

Source

pub fn as_<M: Matcher>(&self) -> M::Match<'_>

Returns the array downcast by the given matcher.

Source

pub fn as_opt<M: Matcher>(&self) -> Option<M::Match<'_>>

Returns the array downcast by the given matcher.

Source

pub fn try_downcast<V: VTable>(self) -> Result<Array<V>, ArrayRef>

Returns the array downcast to the given Array<V> as an owned typed handle.

Source

pub fn downcast<V: VTable>(self) -> Array<V>

Returns the array downcast to the given Array<V> as an owned typed handle.

§Panics

Panics if the array is not of the given type.

Source

pub fn as_typed<V: VTable>(&self) -> Option<ArrayView<'_, V>>

Returns a reference to the typed ArrayInner<V> if this array matches the given vtable type.

Source

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

Returns the constant scalar if this is a constant array.

Source

pub fn nbytes(&self) -> u64

Total size of the array in bytes, including all children and buffers.

Source

pub fn is_arrow(&self) -> bool

Returns whether this array is an arrow encoding.

Source

pub fn is_canonical(&self) -> bool

Whether the array is of a canonical encoding.

Source

pub fn with_slot( self, slot_idx: usize, replacement: ArrayRef, ) -> VortexResult<ArrayRef>

Returns a new array with the slot at slot_idx replaced by replacement.

This is only valid for physical rewrites: the replacement must have the same logical DType and len as the existing slot.

Takes ownership to allow in-place mutation when the refcount is 1.

Source

pub fn with_slots(self, slots: Vec<Option<ArrayRef>>) -> VortexResult<ArrayRef>

Returns a new array with the provided slots.

This is only valid for physical rewrites: slot count, presence, logical DType, and logical len must remain unchanged.

Source

pub fn reduce(&self) -> VortexResult<Option<ArrayRef>>

Source

pub fn reduce_parent( &self, parent: &ArrayRef, child_idx: usize, ) -> VortexResult<Option<ArrayRef>>

Source

pub fn execute_parent( &self, parent: &ArrayRef, child_idx: usize, ctx: &mut ExecutionCtx, ) -> VortexResult<Option<ArrayRef>>

Source

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

Returns the children of the array.

Source

pub fn nchildren(&self) -> usize

Returns the number of children of the array.

Source

pub fn nth_child(&self, idx: usize) -> Option<ArrayRef>

Returns the nth child of the array without allocating a Vec.

Source

pub fn children_names(&self) -> Vec<String>

Returns the names of the children of the array.

Source

pub fn named_children(&self) -> Vec<(String, ArrayRef)>

Returns the array’s children with their names.

Source

pub fn buffers(&self) -> Vec<ByteBuffer>

Returns the data buffers of the array.

Source

pub fn buffer_handles(&self) -> Vec<BufferHandle>

Returns the buffer handles of the array.

Source

pub fn buffer_names(&self) -> Vec<String>

Returns the names of the buffers of the array.

Source

pub fn named_buffers(&self) -> Vec<(String, BufferHandle)>

Returns the array’s buffers with their names.

Source

pub fn nbuffers(&self) -> usize

Returns the number of data buffers of the array.

Source

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

Returns the slots of the array.

Source

pub fn slot_name(&self, idx: usize) -> String

Returns the name of the slot at the given index.

Source

pub fn metadata(&self, session: &VortexSession) -> VortexResult<Option<Vec<u8>>>

Returns the serialized metadata of the array.

Source

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

Formats a human-readable metadata description.

Source

pub fn is_host(&self) -> bool

Returns whether all buffers are host-resident.

Source

pub fn nbuffers_recursive(&self) -> usize

Count the number of buffers encoded by self and all child arrays.

Source

pub fn depth_first_traversal(&self) -> DepthFirstArrayIterator

Depth-first traversal of the array and its children.

Source§

impl ArrayRef

Source

pub fn display_values(&self) -> impl Display

Display logical values of the array

For example, an i16 typed array containing the first five non-negative integers is displayed as: [0i16, 1i16, 2i16, 3i16, 4i16].

§Examples
let array = buffer![0_i16, 1, 2, 3, 4].into_array();
assert_eq!(
    format!("{}", array.display_values()),
    "[0i16, 1i16, 2i16, 3i16, 4i16]",
)

See also: Array::display_as, DisplayArrayAs, and DisplayOptions.

Source

pub fn display_as(&self, options: DisplayOptions) -> impl Display

Display the array as specified by the options.

See DisplayOptions for examples.

Source

pub fn display_tree_encodings_only(&self) -> TreeDisplay

Display the tree of array encodings and lengths without metadata, buffers, or stats.

§Examples
let array = buffer![0_i16, 1, 2, 3, 4].into_array();
let expected = "root: vortex.primitive(i16, len=5)\n";
assert_eq!(format!("{}", array.display_tree_encodings_only()), expected);

let array = StructArray::from_fields(&[
    ("x", buffer![1, 2].into_array()),
    ("y", buffer![3, 4].into_array()),
]).unwrap().into_array();
let expected = "root: vortex.struct({x=i32, y=i32}, len=2)
  x: vortex.primitive(i32, len=2)
  y: vortex.primitive(i32, len=2)
";
assert_eq!(format!("{}", array.display_tree_encodings_only()), expected);
Source

pub fn display_tree(&self) -> TreeDisplay

Display the tree of encodings of this array as an indented lists.

While some metadata (such as length, bytes and validity-rate) are included, the logical values of the array are not displayed. To view the logical values see Array::display_as and DisplayOptions.

§Examples
let array = buffer![0_i16, 1, 2, 3, 4].into_array();
let expected = "root: vortex.primitive(i16, len=5) nbytes=10 B (100.00%)
  metadata: ptype: i16
  buffer: values host 10 B (align=2) (100.00%)
";
assert_eq!(format!("{}", array.display_tree()), expected);
Source

pub fn tree_display(&self) -> TreeDisplay

Create a tree display with all built-in extractors (nbytes, stats, metadata, buffers).

This is the default, fully-detailed tree display. Use tree_display_builder() for a blank slate.

§Examples
let array = buffer![0_i16, 1, 2, 3, 4].into_array();
let expected = "root: vortex.primitive(i16, len=5) nbytes=10 B (100.00%)
  metadata: ptype: i16
  buffer: values host 10 B (align=2) (100.00%)
";
assert_eq!(array.tree_display().to_string(), expected);
Source

pub fn tree_display_builder(&self) -> TreeDisplay

Create a composable tree display builder with no extractors.

With no extractors, only the node names are shown. Add extractors with .with() to include additional information. Most builders should start with EncodingSummaryExtractor to include encoding headers.

§Examples
use vortex_array::display::{EncodingSummaryExtractor, NbytesExtractor, MetadataExtractor, BufferExtractor};

let array = buffer![0_i16, 1, 2, 3, 4].into_array();

// Encodings only
let encodings = array.tree_display_builder()
    .with(EncodingSummaryExtractor)
    .to_string();
assert_eq!(encodings, "root: vortex.primitive(i16, len=5)\n");

// With encoding + nbytes
let with_nbytes = array.tree_display_builder()
    .with(EncodingSummaryExtractor)
    .with(NbytesExtractor)
    .to_string();
assert_eq!(with_nbytes, "root: vortex.primitive(i16, len=5) nbytes=10 B (100.00%)\n");

// With encoding, metadata, and buffers
let detailed = array.tree_display_builder()
    .with(EncodingSummaryExtractor)
    .with(MetadataExtractor)
    .with(BufferExtractor { show_percent: false })
    .to_string();
let expected = "root: vortex.primitive(i16, len=5)\n  metadata: ptype: i16\n  buffer: values host 10 B (align=2)\n";
assert_eq!(detailed, expected);
Source

pub fn display_table(&self) -> impl Display

Display the array as a formatted table.

For struct arrays, displays a column for each field in the struct. For regular arrays, displays a single column with values.

§Examples
let s = StructArray::from_fields(&[
    ("x", buffer![1, 2].into_array()),
    ("y", buffer![3, 4].into_array()),
]).unwrap().into_array();
let expected = "
┌──────┬──────┐
│  x   │  y   │
├──────┼──────┤
│ 1i32 │ 3i32 │
├──────┼──────┤
│ 2i32 │ 4i32 │
└──────┴──────┘".trim();
assert_eq!(format!("{}", s.display_table()), expected);
Source§

impl ArrayRef

Source

pub fn execute<E: Executable>(self, ctx: &mut ExecutionCtx) -> VortexResult<E>

Execute this array to produce an instance of E.

See the Executable implementation for details on how this execution is performed.

Source

pub fn execute_as<E: Executable>( self, _name: &'static str, ctx: &mut ExecutionCtx, ) -> VortexResult<E>

Execute this array, labeling the execution step with a name for tracing.

Source

pub fn execute_until<M: Matcher>( self, ctx: &mut ExecutionCtx, ) -> VortexResult<ArrayRef>

Iteratively execute this array until the Matcher matches, using an explicit work stack.

The scheduler repeatedly:

  1. Checks if the current array matches M — if so, pops the stack or returns.
  2. Runs execute_parent on each child for child-driven optimizations.
  3. Calls execute which returns an ExecutionStep.

Note: the returned array may not match M. If execution converges to a canonical form that does not match M, the canonical array is returned since no further execution progress is possible.

For safety, we will error when the number of execution iterations reaches a configurable maximum (default 128, override with VORTEX_MAX_ITERATIONS).

Source§

impl ArrayRef

Source

pub fn apply(self, expr: &Expression) -> VortexResult<ArrayRef>

Apply the expression to this array, producing a new array in constant time.

Source§

impl ArrayRef

Source

pub fn to_array_iterator(&self) -> impl ArrayIterator + 'static

Create an ArrayIterator over the array.

Source§

impl ArrayRef

Source

pub fn normalize( self, options: &mut NormalizeOptions<'_>, ) -> VortexResult<ArrayRef>

Normalize the array according to given options.

This operation performs a recursive traversal of the array. Any non-allowed encoding is normalized per the configured operation.

Source§

impl ArrayRef

Source

pub fn serialize( &self, ctx: &ArrayContext, session: &VortexSession, options: &SerializeOptions, ) -> VortexResult<Vec<ByteBuffer>>

Serialize the array into a sequence of byte buffers that should be written contiguously. This function returns a vec to avoid copying data buffers.

Optionally, padding can be included to guarantee buffer alignment and ensure zero-copy reads within the context of an external file or stream. In this case, the alignment of the first byte buffer should be respected when writing the buffers to the stream or file.

The format of this blob is a sequence of data buffers, possible with prefixed padding, followed by a flatbuffer containing an fba::Array message, and ending with a little-endian u32 describing the length of the flatbuffer message.

Source§

impl ArrayRef

Source

pub fn to_array_stream(&self) -> impl ArrayStream + 'static

Create an ArrayStream over the array.

Source§

impl ArrayRef

Source

pub fn as_null_typed(&self) -> NullTyped<'_>

Downcasts the array for null-specific behavior.

Source

pub fn as_bool_typed(&self) -> BoolTyped<'_>

Downcasts the array for bool-specific behavior.

Source

pub fn as_primitive_typed(&self) -> PrimitiveTyped<'_>

Downcasts the array for primitive-specific behavior.

Source

pub fn as_decimal_typed(&self) -> DecimalTyped<'_>

Downcasts the array for decimal-specific behavior.

Source

pub fn as_utf8_typed(&self) -> Utf8Typed<'_>

Downcasts the array for utf8-specific behavior.

Source

pub fn as_binary_typed(&self) -> BinaryTyped<'_>

Downcasts the array for binary-specific behavior.

Source

pub fn as_struct_typed(&self) -> StructTyped<'_>

Downcasts the array for struct-specific behavior.

Source

pub fn as_list_typed(&self) -> ListTyped<'_>

Downcasts the array for list-specific behavior.

Source

pub fn as_extension_typed(&self) -> ExtensionTyped<'_>

Downcasts the array for extension-specific behavior.

Source

pub fn try_to_mask_fill_null_false( &self, ctx: &mut ExecutionCtx, ) -> VortexResult<Mask>

Trait Implementations§

Source§

impl ArrayBuiltins for ArrayRef

Source§

fn cast(&self, dtype: DType) -> VortexResult<ArrayRef>

Cast to the given data type.
Source§

fn fill_null(&self, fill_value: impl Into<Scalar>) -> VortexResult<ArrayRef>

Replace null values with the given fill value.
Source§

fn get_item(&self, field_name: impl Into<FieldName>) -> VortexResult<ArrayRef>

Get item by field name (for struct types).
Source§

fn is_null(&self) -> VortexResult<ArrayRef>

Is null check.
Source§

fn mask(self, mask: ArrayRef) -> VortexResult<ArrayRef>

Mask the array using the given boolean mask. The resulting array’s validity is the intersection of the original array’s validity and the mask’s validity.
Source§

fn not(&self) -> VortexResult<ArrayRef>

Boolean negation.
Source§

fn zip(&self, if_true: ArrayRef, if_false: ArrayRef) -> VortexResult<ArrayRef>

Conditional selection: result[i] = if mask[i] then if_true[i] else if_false[i].
Source§

fn list_contains(&self, value: ArrayRef) -> VortexResult<ArrayRef>

Check if a list contains a value.
Source§

fn binary(&self, rhs: ArrayRef, op: Operator) -> VortexResult<ArrayRef>

Apply a binary operator to this array and another.
Source§

fn between( self, lower: ArrayRef, upper: ArrayRef, options: BetweenOptions, ) -> VortexResult<ArrayRef>

Compare a values between lower </<= value </<= upper
Source§

impl ArrayEq for ArrayRef

Source§

fn array_eq(&self, other: &Self, precision: Precision) -> bool

Source§

impl ArrayHash for ArrayRef

Source§

fn array_hash<H: Hasher>(&self, state: &mut H, precision: Precision)

Source§

impl ArrayOptimizer for ArrayRef

Source§

fn optimize(&self) -> VortexResult<ArrayRef>

Optimize the root array node only by running reduce and reduce_parent rules to fixpoint.
Source§

fn optimize_recursive(&self) -> VortexResult<ArrayRef>

Optimize the entire array tree recursively (root and all descendants).
Source§

impl ArrowArrayExecutor for ArrayRef

Source§

fn execute_arrow( self, data_type: Option<&DataType>, ctx: &mut ExecutionCtx, ) -> VortexResult<ArrowArrayRef>

Execute the array to produce an Arrow array. Read more
Source§

fn execute_record_batches( self, schema: &Schema, ctx: &mut ExecutionCtx, ) -> VortexResult<Vec<RecordBatch>>

Execute the array to produce Arrow RecordBatch’s with the given schema.
Source§

fn execute_record_batch( self, schema: &Schema, ctx: &mut ExecutionCtx, ) -> VortexResult<RecordBatch>

Execute the array to produce an Arrow RecordBatch with the given schema.
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> AsRef<ArrayRef> for ArrayView<'_, V>

Source§

fn as_ref(&self) -> &ArrayRef

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

impl Clone for ArrayRef

Source§

fn clone(&self) -> ArrayRef

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 Debug for ArrayRef

Source§

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

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

impl Display for ArrayRef

Display the encoding and limited metadata of this array.

§Examples

let array = buffer![0_i16, 1, 2, 3, 4].into_array();
assert_eq!(
    format!("{}", array),
    "vortex.primitive(i16, len=5)",
);
Source§

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

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

impl Executable for ArrayRef

Executing an ArrayRef into an ArrayRef is the atomic execution loop within Vortex.

It attempts to take the smallest possible step of execution such that the returned array is incrementally more “executed” than the input array. In other words, it is closer to becoming a canonical array.

The execution steps are as follows: 0. Check for canonical.

  1. Attempt to reduce the array with metadata-only optimizations.
  2. Attempt to call reduce_parent on each child.
  3. Attempt to call execute_parent on each child.
  4. Call execute on the array itself (which returns an ExecutionStep).

Most users will not call this method directly, instead preferring to specify an executable target such as crate::Columnar, Canonical, or any of the canonical array types (such as crate::arrays::PrimitiveArray).

Source§

fn execute(array: ArrayRef, ctx: &mut ExecutionCtx) -> VortexResult<Self>

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<Canonical> for ArrayRef

Source§

fn from(value: Canonical) -> Self

Converts to this type from the input type.
Source§

impl From<TemporalData> for ArrayRef

Source§

fn from(value: TemporalData) -> Self

Converts to this type from the input type.
Source§

impl FromArrowArray<&BooleanArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowBooleanArray, nullable: bool) -> VortexResult<Self>

Source§

impl FromArrowArray<&FixedSizeListArray> for ArrayRef

Source§

fn from_arrow( array: &ArrowFixedSizeListArray, nullable: bool, ) -> VortexResult<Self>

Source§

impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for ArrayRef

Source§

fn from_arrow(value: &GenericByteArray<T>, nullable: bool) -> VortexResult<Self>

Source§

impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for ArrayRef

Source§

fn from_arrow( value: &GenericByteViewArray<T>, nullable: bool, ) -> VortexResult<Self>

Source§

impl<O: IntegerPType + OffsetSizeTrait> FromArrowArray<&GenericListArray<O>> for ArrayRef

Source§

fn from_arrow(value: &GenericListArray<O>, nullable: bool) -> VortexResult<Self>

Source§

impl<O: OffsetSizeTrait + NativePType> FromArrowArray<&GenericListViewArray<O>> for ArrayRef

Source§

fn from_arrow( array: &GenericListViewArray<O>, nullable: bool, ) -> VortexResult<Self>

Source§

impl FromArrowArray<&NullArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowNullArray, nullable: bool) -> VortexResult<Self>

Source§

impl FromArrowArray<&PrimitiveArray<Date32Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Date64Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Decimal128Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Decimal256Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Decimal32Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Decimal64Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Float16Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Float32Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Float64Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Int16Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Int32Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Int64Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Int8Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time32MillisecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time32SecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time64MicrosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time64NanosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampMicrosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampMillisecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampNanosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampSecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<UInt16Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<UInt32Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<UInt64Type>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<UInt8Type>> for ArrayRef

Source§

impl FromArrowArray<&RecordBatch> for ArrayRef

Source§

fn from_arrow(array: &RecordBatch, nullable: bool) -> VortexResult<Self>

Source§

impl FromArrowArray<&StructArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowStructArray, nullable: bool) -> VortexResult<Self>

Source§

impl FromArrowArray<&dyn Array> for ArrayRef

Source§

fn from_arrow(array: &dyn ArrowArray, nullable: bool) -> VortexResult<Self>

Source§

impl FromArrowArray<RecordBatch> for ArrayRef

Source§

fn from_arrow(array: RecordBatch, nullable: bool) -> VortexResult<Self>

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 IndexOrd<Scalar> for ArrayRef

Source§

fn index_cmp(&self, idx: usize, elem: &Scalar) -> VortexResult<Option<Ordering>>

PartialOrd of the value at index idx with elem. For example, if self[idx] > elem, return Some(Greater).
Source§

fn index_len(&self) -> usize

Get the length of the underlying ordered collection
Source§

fn index_lt(&self, idx: usize, elem: &V) -> VortexResult<bool>

Source§

fn index_le(&self, idx: usize, elem: &V) -> VortexResult<bool>

Source§

fn index_gt(&self, idx: usize, elem: &V) -> VortexResult<bool>

Source§

fn index_ge(&self, idx: usize, elem: &V) -> VortexResult<bool>

Source§

impl IntoArray for ArrayRef

Source§

impl IntoArrowArray for ArrayRef

Source§

fn into_arrow_preferred(self) -> VortexResult<ArrowArrayRef>

Convert this crate::ArrayRef into an Arrow crate::ArrayRef by using the array’s preferred (cheapest) Arrow DataType.

Source§

fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrowArrayRef>

Source§

impl ReduceNode for ArrayRef

Source§

fn as_any(&self) -> &dyn Any

Downcast to Any.
Source§

fn node_dtype(&self) -> VortexResult<DType>

Return the data type of this node.
Source§

fn scalar_fn(&self) -> Option<&ScalarFnRef>

Return this node’s scalar function if it is indeed a scalar fn.
Source§

fn child(&self, idx: usize) -> ReduceNodeRef

Descend to the child of this handle.
Source§

fn child_count(&self) -> usize

Returns the number of children of this node.
Source§

impl ToCanonical for ArrayRef

Source§

fn to_null(&self) -> NullArray

Canonicalize into a NullArray if the target is Null typed.
Source§

fn to_bool(&self) -> BoolArray

Canonicalize into a BoolArray if the target is Bool typed.
Source§

fn to_primitive(&self) -> PrimitiveArray

Canonicalize into a PrimitiveArray if the target is Primitive typed.
Source§

fn to_decimal(&self) -> DecimalArray

Canonicalize into a DecimalArray if the target is Decimal typed.
Source§

fn to_struct(&self) -> StructArray

Canonicalize into a StructArray if the target is Struct typed.
Source§

fn to_listview(&self) -> ListViewArray

Canonicalize into a ListViewArray if the target is List typed.
Source§

fn to_fixed_size_list(&self) -> FixedSizeListArray

Canonicalize into a FixedSizeListArray if the target is List typed.
Source§

fn to_varbinview(&self) -> VarBinViewArray

Canonicalize into a VarBinViewArray if the target is Utf8 or Binary typed.
Source§

fn to_extension(&self) -> ExtensionArray

Canonicalize into an ExtensionArray if the array is Extension typed.
Source§

impl TryFrom<&ArrayRef> for RecordBatch

Source§

type Error = VortexError

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

fn try_from(value: &ArrayRef) -> VortexResult<Self>

Performs the conversion.
Source§

impl TryFrom<ArrayRef> for TemporalData

Source§

fn try_from(value: ArrayRef) -> Result<Self, Self::Error>

Try to specialize a generic Vortex array as a TemporalData.

§Errors

If the provided Array does not have vortex.ext encoding, an error will be returned.

If the provided Array does not have recognized ExtMetadata corresponding to one of the known TemporalMetadata variants, an error is returned.

Source§

type Error = VortexError

The type returned in the event of a conversion error.

Auto Trait Implementations§

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> 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> DynArrayEq for T
where T: ArrayEq + 'static,

Source§

fn dyn_array_eq( &self, other: &(dyn Any + 'static), precision: Precision, ) -> bool

Source§

impl<T> DynArrayHash for T
where T: ArrayHash + ?Sized,

Source§

fn dyn_array_hash(&self, state: &mut dyn Hasher, precision: Precision)

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> 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> 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<S, T> SearchSorted<T> for S
where S: IndexOrd<T> + ?Sized,

Source§

fn search_sorted_by<F, N>( &self, find: F, side_find: N, side: SearchSortedSide, ) -> Result<SearchResult, VortexError>

find function is used to find the element if it exists, if element exists side_find will be used to find desired index amongst equal values
Source§

fn search_sorted( &self, value: &T, side: SearchSortedSide, ) -> VortexResult<SearchResult>
where Self: IndexOrd<T>,

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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> 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