devela::all

Trait DataValue

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

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

Common trait for 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_type(&self) -> Self::Type

Returns the data type corresponding to the current value.

Source

fn data_value_is_copy(&self) -> bool

Whether the data type in the current variant is Copy.

Implementors§