pub unsafe trait Bytes:
Sized
+ Copy
+ 'static { }Expand description
Get bytes of a value.
You shouldn’t implement this trait manually, use derive macro.
§Safety
It should be safe to cast a slice of Self to bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".