Skip to main content

Module convert_bool_then

Module convert_bool_then 

Source

Functionsยง

block_is_none_variant ๐Ÿ”’
convert_bool_then_to_if ๐Ÿ”’
convert_if_to_bool_then ๐Ÿ”’
is_invalid_body ๐Ÿ”’
Traverses the expression checking if it contains return or ? expressions or if any tail is not a Some(expr) expression. If any of these conditions are met it is impossible to rewrite this as a bool::then call.
option_variants ๐Ÿ”’