Function fix_getters_rules::function::guesstimate_boolness_then_rename[][src]

pub fn guesstimate_boolness_then_rename(suffix: &str) -> Option<NewName>

Attempts to determine whether the getter returns a bool from its name.

Uses BOOL_FIRST_TOKEN_SUBSTITUTES, BOOL_FIRST_TOKEN_NO_PREFIX and BOOL_ABLE_PREFIX as a best effort estimation.

Returns the name substitute if self seems to be returning a bool.