pub struct PrefixedArray<I: PrefixedArrayInfo, T> { /* private fields */ }
Expand description

This is used as starting point to implement other types. See for example the code for RcArray.

Implementations

Write value to inner data at offset using std::ptr::write.

Returns the inner data as a slice with length info.len().

Returns the inner data as a mutable slice with length info.len().

Creates a new PrefixedArray that share the inner data with self.

Drop the array elements, the info and deallocate.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.