pub trait DataTypeCopy: DataTypewhere
Self::Value: DataValueCopy,{
// Provided method
fn data_value_copy_default(&self) -> Option<Self::Value> ⓘ { ... }
}
Expand description
Provided Methods§
Sourcefn data_value_copy_default(&self) -> Option<Self::Value> ⓘ
fn data_value_copy_default(&self) -> Option<Self::Value> ⓘ
Returns some default value corresponding to the current (Copy) type.
Or returns None
if the actual type doesn’t implement Default
.
The default implementation calls 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.