Trait heck::MixedCase [−][src]
pub trait MixedCase: ToOwned { fn to_mixed_case(&self) -> Self::Owned; }
This trait defines a mixed case conversion.
In mixedCase, word boundaries are indicated by capital letters, excepting the first word.
Example:
extern crate heck; fn main() { use heck::MixedCase; let sentence = "It is we who built these palaces and cities."; assert_eq!(sentence.to_mixed_case(), "itIsWeWhoBuiltThesePalacesAndCities"); }
Required Methods
fn to_mixed_case(&self) -> Self::Owned
Convert this type to mixed case.
Implementations on Foreign Types
impl MixedCase for str
[src]
impl MixedCase for str
fn to_mixed_case(&self) -> String
[src]
fn to_mixed_case(&self) -> String