Trait dryoc::types::MutBytes

source ·
pub trait MutBytes: Bytes {
    fn as_mut_slice(&mut self) -> &mut [u8] ;
    fn copy_from_slice(&mut self, other: &[u8]);
}
Expand description

Arbitrary-length array of mutable bytes.

Required Methods§

Returns a mutable slice to the underlying bytes.

Copies into the underlying slice from other. Panics if lengths do not match.

Implementations on Foreign Types§

Implementors§