Trait dryoc::types::MutByteArray
source · pub trait MutByteArray<const LENGTH: usize>: ByteArray<LENGTH> + MutBytes {
// Required method
fn as_mut_array(&mut self) -> &mut [u8; LENGTH];
}
Expand description
Fixed-length mutable byte array.
Required Methods§
sourcefn as_mut_array(&mut self) -> &mut [u8; LENGTH]
fn as_mut_array(&mut self) -> &mut [u8; LENGTH]
Returns a mutable reference to the underlying fixed-length byte array.
Implementations on Foreign Types§
source§impl<const LENGTH: usize> MutByteArray<LENGTH> for [u8; LENGTH]
impl<const LENGTH: usize> MutByteArray<LENGTH> for [u8; LENGTH]
fn as_mut_array(&mut self) -> &mut [u8; LENGTH]
source§impl<const LENGTH: usize> MutByteArray<LENGTH> for [u8]
impl<const LENGTH: usize> MutByteArray<LENGTH> for [u8]
fn as_mut_array(&mut self) -> &mut [u8; LENGTH]
source§impl<const LENGTH: usize> MutByteArray<LENGTH> for Vec<u8>
impl<const LENGTH: usize> MutByteArray<LENGTH> for Vec<u8>
fn as_mut_array(&mut self) -> &mut [u8; LENGTH]
Implementors§
impl<const LENGTH: usize> MutByteArray<LENGTH> for HeapByteArray<LENGTH>
Available on crate feature
nightly
only.impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
Available on crate feature
nightly
only.impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Unlocked>
Available on crate feature
nightly
only.