Skip to main content

Value

Enum Value 

Source
pub enum Value {
Show 21 variants Scalar(Scalar), Array(Arc<Array>), ArrayView(Arc<ArrayV>), FieldArray(Arc<FieldArray>), Table(Arc<Table>), TableView(Arc<TableV>), SuperArray(Arc<SuperArray>), SuperArrayView(Arc<SuperArrayV>), SuperTable(Arc<SuperTable>), SuperTableView(Arc<SuperTableV>), Matrix(Arc<Matrix>), Cube(Arc<Cube>), VecValue(Arc<Vec<Value>>), BoxValue(Box<Value>), ArcValue(Arc<Value>), Tuple2(Arc<(Value, Value)>), Tuple3(Arc<(Value, Value, Value)>), Tuple4(Arc<(Value, Value, Value, Value)>), Tuple5(Arc<(Value, Value, Value, Value, Value)>), Tuple6(Arc<(Value, Value, Value, Value, Value, Value)>), Custom(Arc<dyn CustomValue>),
}
Expand description

§Value

Unified value enum representing any supported data structure.

§Details

  • Wraps scalar values, arrays, array windows, full tables, or table windows under a single type for function signatures and downstream dispatch.
  • This can be useful when you need a global type universe.
  • It is not part of the Arrow specification, but is useful because of the flexibility it adds unifying all types to a single one. For example, to return Result<Value, Error>, particularly in engine contexts.
  • It’s enabled optionally via the value_type feature.

§Usage

You can also use it to hold a custom type under the Custom entry. As long as the object implements Debug, Clone, and PartialEq, remains Send + Sync, and implements Any it can be stored in Value::Custom. Any is implemented automatically for all Rust types with a 'static lifetime.

Variants§

§

Scalar(Scalar)

§

Array(Arc<Array>)

§

ArrayView(Arc<ArrayV>)

§

FieldArray(Arc<FieldArray>)

§

Table(Arc<Table>)

§

TableView(Arc<TableV>)

§

SuperArray(Arc<SuperArray>)

§

SuperArrayView(Arc<SuperArrayV>)

§

SuperTable(Arc<SuperTable>)

§

SuperTableView(Arc<SuperTableV>)

§

Matrix(Arc<Matrix>)

§

Cube(Arc<Cube>)

§

VecValue(Arc<Vec<Value>>)

§

BoxValue(Box<Value>)

§

ArcValue(Arc<Value>)

§

Tuple2(Arc<(Value, Value)>)

§

Tuple3(Arc<(Value, Value, Value)>)

§

Tuple4(Arc<(Value, Value, Value, Value)>)

§

Tuple5(Arc<(Value, Value, Value, Value, Value)>)

§

Tuple6(Arc<(Value, Value, Value, Value, Value, Value)>)

§

Custom(Arc<dyn CustomValue>)

Arbitrary user or library-defined payload.

As long as the object implements Debug, Clone, and PartialEq, remains Send + Sync, and implements Any it can be stored in Value::Custom. Any is implemented automatically for all Rust types with a 'static lifetime.

Borrowed values cannot be used directly. These must be wrapped in Arc or otherwise promoted to 'static to store inside Value.

It’s recommended that creators also implement From and TryFrom.

Implementations§

Source§

impl Value

Source

pub fn scalar(&self) -> &Scalar

Returns the inner Scalar if this is a Value::Scalar.

Panics if the value is not a Scalar variant.

Source

pub fn try_scalar(&self) -> Result<&Scalar, MinarrowError>

Returns the inner Scalar if this is a Value::Scalar, or an error otherwise.

Source

pub fn arr(&self) -> &Array

Returns the inner Array if this is a Value::Array.

Panics if the value is not an Array variant.

Source

pub fn try_arr(&self) -> Result<&Array, MinarrowError>

Returns the inner Array if this is a Value::Array, or an error otherwise.

Source

pub fn av(&self) -> &ArrayV

Returns the inner ArrayV if this is a Value::ArrayView.

Panics if the value is not an ArrayView variant.

Source

pub fn try_av(&self) -> Result<&ArrayV, MinarrowError>

Returns the inner ArrayV if this is a Value::ArrayView, or an error otherwise.

Source

pub fn fa(&self) -> &FieldArray

Returns the inner FieldArray if this is a Value::FieldArray.

Panics if the value is not a FieldArray variant.

Source

pub fn try_fa(&self) -> Result<&FieldArray, MinarrowError>

Returns the inner FieldArray if this is a Value::FieldArray, or an error otherwise.

Source

pub fn table(&self) -> &Table

Returns the inner Table if this is a Value::Table.

Panics if the value is not a Table variant.

Source

pub fn try_table(&self) -> Result<&Table, MinarrowError>

Returns the inner Table if this is a Value::Table, or an error otherwise.

Source

pub fn tv(&self) -> &TableV

Returns the inner TableV if this is a Value::TableView.

Panics if the value is not a TableView variant.

Source

pub fn try_tv(&self) -> Result<&TableV, MinarrowError>

Returns the inner TableV if this is a Value::TableView, or an error otherwise.

Source

pub fn sa(&self) -> &SuperArray

Returns the inner SuperArray if this is a Value::SuperArray.

Panics if the value is not a SuperArray variant.

Source

pub fn try_sa(&self) -> Result<&SuperArray, MinarrowError>

Returns the inner SuperArray if this is a Value::SuperArray, or an error otherwise.

Source

pub fn sav(&self) -> &SuperArrayV

Returns the inner SuperArrayV if this is a Value::SuperArrayView.

Panics if the value is not a SuperArrayView variant.

Source

pub fn try_sav(&self) -> Result<&SuperArrayV, MinarrowError>

Returns the inner SuperArrayV if this is a Value::SuperArrayView, or an error otherwise.

Source

pub fn st(&self) -> &SuperTable

Returns the inner SuperTable if this is a Value::SuperTable.

Panics if the value is not a SuperTable variant.

Source

pub fn try_st(&self) -> Result<&SuperTable, MinarrowError>

Returns the inner SuperTable if this is a Value::SuperTable, or an error otherwise.

Source

pub fn stv(&self) -> &SuperTableV

Returns the inner SuperTableV if this is a Value::SuperTableView.

Panics if the value is not a SuperTableView variant.

Source

pub fn try_stv(&self) -> Result<&SuperTableV, MinarrowError>

Returns the inner SuperTableV if this is a Value::SuperTableView, or an error otherwise.

Source

pub fn mat(&self) -> &Matrix

Returns the inner Matrix if this is a Value::Matrix.

Panics if the value is not a Matrix variant.

Source

pub fn try_mat(&self) -> Result<&Matrix, MinarrowError>

Returns the inner Matrix if this is a Value::Matrix, or an error otherwise.

Source

pub fn cube(&self) -> &Cube

Returns the inner Cube if this is a Value::Cube.

Panics if the value is not a Cube variant.

Source

pub fn try_cube(&self) -> Result<&Cube, MinarrowError>

Returns the inner Cube if this is a Value::Cube, or an error otherwise.

Source

pub fn vec_val(&self) -> &Vec<Value>

Returns the inner Vec<Value> if this is a Value::VecValue.

Panics if the value is not a VecValue variant.

Source

pub fn try_vec_val(&self) -> Result<&Vec<Value>, MinarrowError>

Returns the inner Vec<Value> if this is a Value::VecValue, or an error otherwise.

Source

pub fn box_val(&self) -> &Value

Returns the inner Value if this is a Value::BoxValue.

Panics if the value is not a BoxValue variant.

Source

pub fn try_box_val(&self) -> Result<&Value, MinarrowError>

Returns the inner Value if this is a Value::BoxValue, or an error otherwise.

Source

pub fn arc_val(&self) -> &Value

Returns the inner Value if this is a Value::ArcValue.

Panics if the value is not an ArcValue variant.

Source

pub fn try_arc_val(&self) -> Result<&Value, MinarrowError>

Returns the inner Value if this is a Value::ArcValue, or an error otherwise.

Source

pub fn t2(&self) -> &(Value, Value)

Returns the inner tuple if this is a Value::Tuple2.

Panics if the value is not a Tuple2 variant.

Source

pub fn try_t2(&self) -> Result<&(Value, Value), MinarrowError>

Returns the inner tuple if this is a Value::Tuple2, or an error otherwise.

Source

pub fn t3(&self) -> &(Value, Value, Value)

Returns the inner tuple if this is a Value::Tuple3.

Panics if the value is not a Tuple3 variant.

Source

pub fn try_t3(&self) -> Result<&(Value, Value, Value), MinarrowError>

Returns the inner tuple if this is a Value::Tuple3, or an error otherwise.

Source

pub fn t4(&self) -> &(Value, Value, Value, Value)

Returns the inner tuple if this is a Value::Tuple4.

Panics if the value is not a Tuple4 variant.

Source

pub fn try_t4(&self) -> Result<&(Value, Value, Value, Value), MinarrowError>

Returns the inner tuple if this is a Value::Tuple4, or an error otherwise.

Source

pub fn t5(&self) -> &(Value, Value, Value, Value, Value)

Returns the inner tuple if this is a Value::Tuple5.

Panics if the value is not a Tuple5 variant.

Source

pub fn try_t5( &self, ) -> Result<&(Value, Value, Value, Value, Value), MinarrowError>

Returns the inner tuple if this is a Value::Tuple5, or an error otherwise.

Source

pub fn t6(&self) -> &(Value, Value, Value, Value, Value, Value)

Returns the inner tuple if this is a Value::Tuple6.

Panics if the value is not a Tuple6 variant.

Source

pub fn try_t6( &self, ) -> Result<&(Value, Value, Value, Value, Value, Value), MinarrowError>

Returns the inner tuple if this is a Value::Tuple6, or an error otherwise.

Source

pub fn custom(&self) -> &dyn CustomValue

Returns the inner CustomValue trait object if this is a Value::Custom.

Panics if the value is not a Custom variant.

Source

pub fn try_custom(&self) -> Result<&dyn CustomValue, MinarrowError>

Returns the inner CustomValue trait object if this is a Value::Custom, or an error otherwise.

Source§

impl Value

Source

pub fn len(&self) -> usize

Computes the logical row/element count for the batch’s input Value.

This normalises the various Value representations so callers can consistently pass a [start, len) range to execute_fn.

Source

pub fn is_empty(&self) -> bool

Returns true if the value is empty.

Source

pub fn slice(&self, offset: usize, length: usize) -> Value

Returns a zero-copy view over [offset .. offset + length) rows of this Value.

For table and array types this returns the corresponding view variant. For scalars, returns a clone since they are dimensionless. For recursive wrappers, delegates to the inner value. For tuples, slices each element independently.

Trait Implementations§

Source§

impl Add<&Value> for &Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Value) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl ByteSize for Value

Available on crate feature value_type only.

ByteSize for Value enum - delegates to inner types

Source§

fn est_bytes(&self) -> usize

Returns the estimated byte size of this object in memory. Read more
Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Concatenate for Value

Source§

fn concat(self, other: Self) -> Result<Self, MinarrowError>

Concatenates self with other, consuming both and returning a new instance. Read more
Source§

impl Debug for Value

Source§

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

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

impl Div<&Value> for &Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Value) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl From<(Value, Value)> for Value

Source§

fn from(v: (Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<(Value, Value, Value)> for Value

Source§

fn from(v: (Value, Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<(Value, Value, Value, Value)> for Value

Source§

fn from(v: (Value, Value, Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<(Value, Value, Value, Value, Value)> for Value

Source§

fn from(v: (Value, Value, Value, Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<(Value, Value, Value, Value, Value, Value)> for Value

Source§

fn from(v: (Value, Value, Value, Value, Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<Array> for Value

Source§

fn from(v: Array) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayV> for Value

Available on crate feature views only.
Source§

fn from(v: ArrayV) -> Self

Converts to this type from the input type.
Source§

impl From<Cube> for Value

Available on crate feature cube only.
Source§

fn from(v: Cube) -> Self

Converts to this type from the input type.
Source§

impl From<FieldArray> for Value

Source§

fn from(v: FieldArray) -> Self

Converts to this type from the input type.
Source§

impl From<Matrix> for Value

Available on crate feature matrix only.
Source§

fn from(v: Matrix) -> Self

Converts to this type from the input type.
Source§

impl From<Scalar> for Value

Source§

fn from(v: Scalar) -> Self

Converts to this type from the input type.
Source§

impl From<SuperArray> for Value

Available on crate feature chunked only.
Source§

fn from(v: SuperArray) -> Self

Converts to this type from the input type.
Source§

impl From<SuperArrayV> for Value

Available on crate features chunked and views only.
Source§

fn from(v: SuperArrayV) -> Self

Converts to this type from the input type.
Source§

impl From<SuperTable> for Value

Available on crate feature chunked only.
Source§

fn from(v: SuperTable) -> Self

Converts to this type from the input type.
Source§

impl From<Table> for Value

Source§

fn from(v: Table) -> Self

Converts to this type from the input type.
Source§

impl From<TableV> for Value

Available on crate feature views only.
Source§

fn from(v: TableV) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Value>> for Value

Source§

fn from(v: Vec<Value>) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<Value> for Value

Collect Values back from an iterator.

Zero items produces an empty VecValue. A single item is returned directly. Multiple items are wrapped in VecValue.

Source§

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

Creates a value from an iterator. Read more
Source§

impl IntoIterator for Value

Iterate over the elements of a Value.

VecValue yields its inner items. All other variants yield themselves as a single element, supporting keep-or-drop filter semantics.

Source§

type Item = Value

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<Value>

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl Mul<&Value> for &Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Value) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl PartialEq for Value

Implements PartialEq for Value

This includes special handling for the Custom type.

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Rem<&Value> for &Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Value) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Shape for Value

Source§

fn shape(&self) -> ShapeDim

Returns arbitrary Shape dimension for any data shape
Source§

fn shape_1d(&self) -> usize

Returns the first dimension shape Read more
Source§

fn shape_2d(&self) -> (usize, usize)

Returns the first and second dimension shapes Read more
Source§

fn shape_3d(&self) -> (usize, usize, usize)

Returns the first, second and third dimension shapes Read more
Source§

fn shape_4d(&self) -> (usize, usize, usize, usize)

Returns the first, second, third and fourth dimension shapes Read more
Source§

impl Sub<&Value> for &Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Value) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Value

Source§

type Output = Result<Value, MinarrowError>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl TryFrom<Value> for (Value, Value)

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for (Value, Value, Value)

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for (Value, Value, Value, Value)

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for (Value, Value, Value, Value, Value)

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for (Value, Value, Value, Value, Value, Value)

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Array

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for ArrayV

Available on crate feature views only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Cube

Available on crate feature cube only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for FieldArray

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Matrix

Available on crate feature matrix only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for NumericArrayV

Available on crate feature views only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<bool>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<f32>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<f64>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<i32>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<i64>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<u32>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<u64>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Scalar

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for SuperArray

Available on crate feature chunked only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for SuperArrayV

Available on crate features chunked and views only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for SuperTable

Available on crate feature chunked only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Table

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TableV

Available on crate feature views only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TemporalArrayV

Available on crate features views and datetime only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TextArrayV

Available on crate feature views only.
Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Value>

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for bool

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f32

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f64

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i32

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i64

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for u32

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for u64

Source§

type Error = MinarrowError

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

fn try_from(v: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Eq for Value

Implements Eq for Value

Since PartialEq is reflexive, symmetric, and transitive for Value, we can safely implement Eq.

Auto Trait Implementations§

§

impl Freeze for Value

§

impl !RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnsafeUnpin for Value

§

impl !UnwindSafe for Value

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> CustomValue for T
where T: Any + Send + Sync + Clone + PartialEq + Debug,

Source§

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

Downcasts the type as Any
Source§

fn deep_clone(&self) -> Arc<dyn CustomValue>

Returns a deep clone of the object. Read more
Source§

fn eq_box(&self, other: &(dyn CustomValue + 'static)) -> bool

Performs semantic equality on the boxed object. Read more
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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<I> IntoStreamingIterator for I
where I: IntoIterator,

Source§

fn into_streaming_iter(self) -> Convert<Self::IntoIter>

Source§

fn into_streaming_iter_ref<'a, T>(self) -> ConvertRef<'a, Self::IntoIter, T>
where Self: IntoIterator<Item = &'a T>, T: ?Sized,

Turns an IntoIterator of references into a StreamingIterator. Read more
Source§

fn into_streaming_iter_mut<'a, T>(self) -> ConvertMut<'a, Self::IntoIter, T>
where Self: IntoIterator<Item = &'a mut T>, T: ?Sized,

Turns an IntoIterator of mutable references into a StreamingIteratorMut. Read more
Source§

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

Source§

fn align() -> usize

The alignment necessary for the key. Must return a power of two.
Source§

fn size(&self) -> usize

The size of the key in bytes.
Source§

unsafe fn init(&self, ptr: *mut u8)

Initialize the key in the given memory location. Read more
Source§

unsafe fn get<'a>(ptr: *const u8) -> &'a T

Get a reference to the key from the given memory location. Read more
Source§

unsafe fn drop_in_place(ptr: *mut u8)

Drop the key in place. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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, 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
Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> PlanCallbackArgs for T

Source§

impl<T> PlanCallbackOut for T