#[repr(transparent)]
pub struct FatArrayPtr<Id: CollectorId> { /* private fields */ }
Expand description

Represents an array as a fat pointer.

Safety

This pointer is stored as a NonNull<[c_void]>

Transmuting back and forth is safe if and only if it is cast to a T first.

Implementations

Get the length of this fat array (stored inline)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The repr’s collector

The “kind” of the array pointer (whether fat or thin) Read more

Construct an array representation from a combination of a pointer and length. Read more

Get a raw pointer to this array’s elements. Read more

Get the length of this array, or None if it’s not stored in the pointer (it’s a thin pointer). 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.

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)

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.