[][src]Function rkyv::archived_value_mut

pub unsafe fn archived_value_mut<T: Archive + ?Sized, U: AsMut<[u8]> + ?Sized>(
    bytes: Pin<&mut U>,
    pos: usize
) -> Pin<&mut Archived<T>>

Casts a mutable archived value from the given byte array at the given position.

This helps avoid situations where lifetimes get inappropriately assigned and allow buffer mutation after getting archived value references.

Safety

This is only safe to call if the value is archived at the given position in the byte array.