Function fix_getters_rules::function::try_rename_would_be_getter[][src]

pub fn try_rename_would_be_getter(
    name: &str,
    returns_bool: impl Into<ReturnsBool>
) -> Result<NewName, RenameError>

Attempts to apply getter name rules to this would-be-getter function.

The argument returns_bool hints the renaming process when the getter returns a unique bool value. Use ReturnsBool::Maybe if the return value is not known.