Static fix_getters_rules::function::BOOL_EXACT_SUBSTITUTES[][src]

pub static BOOL_EXACT_SUBSTITUTES: Lazy<HashMap<&'static str, &'static str>>

Substitutes of bool getter to be used when the suffix matches exactly.

The convention is to rename bool getters get_suffix as is_suffix, but there are cases for which it would be confusing to add the is prefix:

  • get_result -> result.
  • get_overwrite -> overwrites. Note that if the getter suffix doesn’t match exactly, this rule doesn’t apply. Ex. get_overwrite_mode -> is_overwrites_mode