Struct dryoc::types::StackByteArray [−][src]
pub struct StackByteArray<const LENGTH: usize>(_);
Expand description
A stack-allocated fixed-length byte array for working with data, with optional Serde features.
Implementations
This is supported on crate feature nightly
only.
This is supported on crate feature
nightly
only.Locks a StackByteArray, consuming it, and returning a Protected wrapper.
pub fn mprotect_readonly(
self
) -> Result<Protected<HeapByteArray<LENGTH>, ReadOnly, Unlocked>, Error>
This is supported on crate feature nightly
only.
pub fn mprotect_readonly(
self
) -> Result<Protected<HeapByteArray<LENGTH>, ReadOnly, Unlocked>, Error>
This is supported on crate feature
nightly
only.Returns a readonly protected StackByteArray.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
impl<const LENGTH: usize> From<StackByteArray<LENGTH>> for HeapByteArray<LENGTH>
This is supported on crate feature nightly
only.
impl<const LENGTH: usize> From<StackByteArray<LENGTH>> for HeapByteArray<LENGTH>
This is supported on crate feature
nightly
only.Performs the conversion.
Returns a mutable reference to the underlying fixed-length byte array.
Returns a new fixed-length byte array, initialized with zeroes.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<const LENGTH: usize> RefUnwindSafe for StackByteArray<LENGTH>
impl<const LENGTH: usize> Send for StackByteArray<LENGTH>
impl<const LENGTH: usize> Sync for StackByteArray<LENGTH>
impl<const LENGTH: usize> Unpin for StackByteArray<LENGTH>
impl<const LENGTH: usize> UnwindSafe for StackByteArray<LENGTH>
Blanket Implementations
Mutably borrows from an owned value. Read more