Trait dryoc::types::MutBytes [−][src]
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
fn as_mut_slice(&mut self) -> &mut [u8]
fn as_mut_slice(&mut self) -> &mut [u8]
Returns a mutable slice to the underlying bytes.
fn copy_from_slice(&mut self, other: &[u8])
fn copy_from_slice(&mut self, other: &[u8])
Copies into the underlying slice from other
. Panics if lengths do not
match.