pub unsafe trait DataTypeKind: Copy {
const KIND: DataType;
}
Expand description
Primitive type marker.
If this trait is implemented for a type, it is assumed to have exactly the same
representation in memory as the primitive value described by the associated KIND
constant.
§Safety
The DataType
must have the same representation as the primitive value of KIND
.
Required Associated Constants§
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.