Trait DataTypeCopy

Source
pub trait DataTypeCopy: DataType + Copy
where Self::Value: DataValueCopy,
{ // Provided method fn data_value_copy_default(&self) -> Option<Self::Value> { ... } }
Expand description

Common trait for enumerating Copy-constrained data types.

Allows extending DataType*CopyWith versions with custom types.

§Coherence

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

§See also

Provided Methods§

Source

fn data_value_copy_default(&self) -> Option<Self::Value>

Returns the default value for this Copy type, or None if not available.

The default implementation forwards to DataType::data_value_default.

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§