Function inflector::string::pluralize::to_plural
[−]
[src]
pub fn to_plural(non_plural_string: String) -> String
Converts a String
to pluralized String
Examples
use inflector::string::pluralize::to_plural; let mock_string: String = "foo_bar".to_string(); let expected_string: String = "foo_bars".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "ox".to_string(); let expected_string: String = "oxen".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "crate".to_string(); let expected_string: String = "crates".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "boxes".to_string(); let expected_string: String = "boxes".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "vengeance".to_string(); let expected_string: String = "vengeance".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "yoga".to_string(); let expected_string: String = "yoga".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run
use inflector::string::pluralize::to_plural; let mock_string: String = "geometry".to_string(); let expected_string: String = "geometries".to_string(); let asserted_string: String = to_plural(mock_string); assert_eq!(asserted_string, expected_string); Run