get_convention

Function get_convention 

Source
pub fn get_convention(name: CaseName) -> Box<dyn Convention>
Expand description

The function get_convention returns a boxed trait object based on the given CaseName enum variant.

Arguments:

  • name: The name parameter is of type CaseName. It is an enum that represents different naming conventions. The possible values for CaseName are:

Returns:

The function get_convention returns a boxed trait object that implements the Convention trait. The specific implementation returned depends on the CaseName enum variant passed as an argument.