new_static_true_key

Function new_static_true_key 

Source
pub const fn new_static_true_key() -> StaticTrueKey
Expand description

Create a new static key with true as initial value.

This method should be called to initialize a static mut static key. It is UB to use this method to create a static key on stack or heap, and use this static key to control branches.

Use define_static_key_true for short.