Struct dryoc::protected::HeapBytes[][src]

pub struct HeapBytes(_);
This is supported on crate feature nightly only.
Expand description

A heap-allocated resizable 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.

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.

Deserialize this value from the given Serde deserializer. Read more

Executes the destructor for this type. Read more

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 HeapBytes, and returns a Protected wrapper.

Returns a mutable slice to the underlying bytes.

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

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

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

This method tests for !=.

Resizes self with new_len elements, populating new values with value. Read more

Serialize this value into the given Serde serializer. Read more

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.

This is supported on crate feature nightly only.

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

This is supported on crate feature nightly only.

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

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.