[−][src]Function inflector::string::demodulize::demodulize
pub fn demodulize(non_demodulize_string: &str) -> String
Demodulize a &str
use inflector::string::demodulize::demodulize; let mock_string: &str = "Bar"; let expected_string: String = "Bar".to_owned(); let asserted_string: String = demodulize(mock_string); assert!(asserted_string == expected_string);
use inflector::string::demodulize::demodulize; let mock_string: &str = "::Bar"; let expected_string: String = "Bar".to_owned(); let asserted_string: String = demodulize(mock_string); assert!(asserted_string == expected_string);
use inflector::string::demodulize::demodulize; let mock_string: &str = "Foo::Bar"; let expected_string: String = "Bar".to_owned(); let asserted_string: String = demodulize(mock_string); assert!(asserted_string == expected_string);
use inflector::string::demodulize::demodulize; let mock_string: &str = "Test::Foo::Bar"; let expected_string: String = "Bar".to_owned(); let asserted_string: String = demodulize(mock_string); assert!(asserted_string == expected_string);