Struct constmuck::ImplsZeroable[][src]

pub struct ImplsZeroable<T> { /* fields omitted */ }
Expand description

Encodes a T:Zeroable bound as a value, avoids requiring (unstable as of 2021) trait bounds in const fns.

Related: the zeroed and zeroed_array functions.

Implementations

Constructs an ImplsZeroable

You can also use the infer macro to construct ImplsZeroable arguments.

Constructs an ImplsZeroable<T> without checking that T implements Zeroable.

Safety

You must ensure that T follows the safety requirements of Zeroable

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Constructs this type.

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 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.