Trait dryoc::types::NewBytes

source ·
pub trait NewBytes: MutBytes {
    // Required method
    fn new_bytes() -> Self;
}
Expand description

Arbitrary-length byte array that can be created and initialized.

Required Methods§

source

fn new_bytes() -> Self

Returns an empty, unallocated, arbitrary-length byte array.

Implementations on Foreign Types§

source§

impl<const LENGTH: usize> NewBytes for [u8; LENGTH]

source§

fn new_bytes() -> Self

source§

impl NewBytes for Vec<u8>

source§

fn new_bytes() -> Self

Implementors§

source§

impl NewBytes for HeapBytes

Available on crate feature nightly only.
source§

impl NewBytes for Protected<HeapBytes, ReadWrite, Locked>

Available on crate feature nightly only.
source§

impl<const LENGTH: usize> NewBytes for HeapByteArray<LENGTH>

Available on crate feature nightly only.
source§

impl<const LENGTH: usize> NewBytes for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>

Available on crate feature nightly only.
source§

impl<const LENGTH: usize> NewBytes for StackByteArray<LENGTH>