devela::all

Trait DataValueCopy

Source
pub trait DataValueCopy: DataValue + Copy {
    // Provided method
    fn data_type_copy(&self) -> Self::Type { ... }
}
Expand description

Common marker trait for Copy data values.

Allows extending DataValue*CopyWith versions.

§Coherence

The DataValue::is_copy super-trait method should probably return true as well.

§See also

Provided Methods§

Source

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

Returns the data type corresponding to the current (Copy) value.

The default implementation calls DataValue::data_type.

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§