Skip to main content

bool_to_choice

Function bool_to_choice 

Source
pub(crate) fn bool_to_choice(v: bool) -> Choice
Expand description

Convert a boolean into a Choice.

This isn’t necessarily a good idea or constant-time.