DoxigAlpha

init

Function parameters

Parameters

#
value:T

Functions in this namespace

Functions

#
spinLoopHint
Signals to the processor that the caller is inside a busy-wait spin-loop.

The estimated size of the CPU's cache line when atomically updating memory.

Values

#
cache_line
The estimated size of the CPU's cache line when atomically updating memory.

Source

Implementation

#
pub fn init(value: T) Self {
    return .{ .raw = value };
}