Function rkyv::util::archived_unsized_value_mut [−][src]
pub unsafe fn archived_unsized_value_mut<T: ArchiveUnsized + ?Sized>(
bytes: Pin<&mut [u8]>,
pos: usize
) -> Pin<&mut T::Archived>
Casts a mutable RelPtr
to the given unsized type from the given byte slice at the given
position and returns the value it points to.
This helps avoid situations where lifetimes get inappropriately assigned and allow buffer mutation after getting archived value references.
Safety
The caller must guarantee that a reference is archived at the given position in the byte slice.