Trait dryoc::types::NewByteArray
source · pub trait NewByteArray<const LENGTH: usize>: MutByteArray<LENGTH> + NewBytes {
// Required methods
fn new_byte_array() -> Self;
fn gen() -> Self;
}
Expand description
Fixed-length byte array that can be created and initialized.
Required Methods§
sourcefn new_byte_array() -> Self
fn new_byte_array() -> Self
Returns a new fixed-length byte array, initialized with zeroes.
Implementations on Foreign Types§
Implementors§
impl<const LENGTH: usize> NewByteArray<LENGTH> for HeapByteArray<LENGTH>
Available on crate feature
nightly
only.impl<const LENGTH: usize> NewByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
Available on crate feature
nightly
only.