Struct r3::hunk::HunkDefiner

source ·
pub struct HunkDefiner<System, T, InitTag>where
    T: ?Sized,
{ /* private fields */ }
Expand description

The definer (static builder) for Hunk.

InitTag is either DefaultInitTag or ZeroInitTag.

Implementations

Specify the element count. Defaults to 1. Must be 1 for a non-array hunk.

Specify the minimum alignment. Defaults to 1.

Zero-initialize the hunk.

Zero-initialize the hunk even if it might be unsafe.

Safety

If zero initialization is not a valid bit pattern for T, accessing the hunk’s contents may result in an undefined behavior.

Complete the definition of a hunk, returning a reference to the hunk.

Complete the definition of a hunk, returning a reference to the hunk.

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.