new_static_false_key

Function new_static_false_key 

Source
pub const fn new_static_false_key() -> StaticFalseKey
Expand description

Create a new static key with false 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_false for short.