Trait zerocopy::byte_slice::CopyableByteSlice
source · pub unsafe trait CopyableByteSlice: ByteSlice + Copy + CloneableByteSlice { }
Expand description
A ByteSlice
which can be copied without violating dereference stability.
§Safety
If B: CopyableByteSlice
, then the dereference stability properties
required by ByteSlice
(see that trait’s safety documentation) do not
only hold regarding two calls to b.deref()
or b.deref_mut()
, but also
hold regarding c.deref()
or c.deref_mut()
, where c
is produced by
copying b
.
Object Safety§
This trait is not object safe.