pub const fn bool_to_enum<E>(b: bool) -> E
where E: BooleanEnum,
Expand description

Converts a bool to a BooleanEnum.

Converts true to BooleanEnum::TRUE, and false to BooleanEnum::FALSE,