pub trait CopyConstructable: Copy { }Expand description
Marker trait for types that can be trivially constructed by copying their underlying data. It can also be assumed, that the size of a CopyConstructable is the actual binary object size.
For types implementing this trait:
FromMemoryViewis automatically implemented.- The associated [
DecodeError] is fixed toInfallible, since decoding cannot fail.
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.