Skip to main content

Mutable

Trait Mutable 

Source
pub unsafe trait Mutable: Source + AsMut<[u8]> { }
Expand description

§Safety

AsMut::as_mut returns the full Source range with its pre-call pointer and length, unchanged after the loan. The call changes no owner, descriptor, extent, or bytes; caller slice writes are allowed, and other exclusive operations retain their own contracts.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Mutable for &mut [u8]

Source§

impl Mutable for Vec<u8>

Implementors§

Source§

impl Mutable for Prefix<'_, '_>

Source§

impl Mutable for Unique<'_>

Source§

impl Mutable for Value<Prefix<'_, '_>>

Source§

impl Mutable for Value<Unique<'_>>