Trait zerocopy::IntoByteSliceMut
source · pub trait IntoByteSliceMut<'a>: ByteSliceMut + Into<&'a mut [u8]> { }
Expand description
A ByteSliceMut
that conveys no ownership, and so can be converted into a
mutable byte slice.
Some ByteSliceMut
types (notably, the standard library’s RefMut
type)
convey ownership, and so they cannot soundly be moved by-value into a byte
slice type (&mut [u8]
). Some methods in this crate’s API (such as
Ref::into_mut
) are only compatible with ByteSliceMut
types without
these ownership semantics.
Object Safety§
This trait is not object safe.