Trait DataValue

Source
pub trait DataValue: Debug {
    type Type: DataType;

    // Required methods
    fn data_values_are_copy() -> bool;
    fn data_type(&self) -> Self::Type;
    fn data_value_is_copy(&self) -> bool;
}
Expand description

Common trait for enumerating data values.

Allows extending DataValue*With versions.

See also:

Required Associated Types§

Source

type Type: DataType

The DataType type that pairs with this DataValue.

Required Methods§

Source

fn data_values_are_copy() -> bool

Returns whether all values are Copy.

Source

fn data_type(&self) -> Self::Type

Returns the data type of this value.

Source

fn data_value_is_copy(&self) -> bool

Returns whether the specific value is Copy.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§