Struct dryoc::protected::HeapByteArray[][src]

pub struct HeapByteArray<const LENGTH: usize>(_);
This is supported on crate feature nightly only.
Expand description

A heap-allocated fixed-length byte array, using the page-aligned allocator. Required for working with protected memory regions. Wraps a Vec with custom Allocator implementation.

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Returns a reference to the underlying fixed-length byte array.

Returns a slice of the underlying bytes.

Shorthand to retrieve the underlying length of the byte array.

Returns true if the array is empty.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Locks a HeapByteArray, and returns a Protected wrapper.

Returns a mutable reference to the underlying fixed-length byte array.

Returns a mutable slice to the underlying bytes.

Copies into the underlying slice from other. Panics if lengths do not match. Read more

Returns a new byte array filled with random data.

Returns a new fixed-length byte array, initialized with zeroes.

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

Returns a new locked byte array from other. Panics if sizes do not match.

Returns a new read-only locked region of memory from src.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

This is supported on crate feature nightly only.

Returns a new locked byte array.

This is supported on crate feature nightly only.

Returns a new locked byte array.

This is supported on crate feature nightly only.

Returns a new locked byte array, filled with random data.

This is supported on crate feature nightly only.

Returns a new read-only, locked byte array, filled with random data.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.