clear_state!() { /* proc-macro */ }
Expand description

Clears the value for the specified key, if it exists.

If an error occurs while trying to clear the state file for the specified key, the error will surface as a compile-time error.

Example

write_state!("my key", "test");
read_state!("my key"); // => "test"
clear_state!("my key");
has_state!("my key"); // => false