try_rename_would_be_getter

Function try_rename_would_be_getter 

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

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.