pub struct Builder16<A, B, C, D, E, F = NeverPtr, G = NeverPtr, H = NeverPtr, I = NeverPtr, J = NeverPtr, K = NeverPtr, L = NeverPtr, M = NeverPtr, N = NeverPtr, O = NeverPtr, P = NeverPtr> { /* private fields */ }
Expand description

A builder for Union16.

An instance of this builder means that Union16 parameterized with the same type arguments are safe to construct.

Implementations

Assert that creating pointer unions of these types is safe.

Safety

The pointer types must be erasable, and their alignment must meet the requirements of the target union type.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Construct a union at this variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Unerase this erased pointer. Read more

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more

Turn this erasable pointer into an erased pointer. 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 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.