pub fn title(value: Value, _: HashMap<String, Value>) -> Result<Value> {
    let s = try_get_value!("title", "value", String, value);

    Ok(to_value(&WORDS_RE.replace_all(&s, |caps: &Captures| {
        let first = caps["first"].to_uppercase();
        let rest = caps["rest"].to_lowercase();
        format!("{}{}", first, rest)
    }))
    .unwrap())
}
/// Capitalizes each word in the string
Capitalizes each word in the string
Capitalizes each word in the string
pub fn title(value: Value, _: HashMap<String, Value>) -> Result<Value> {
    let s = try_get_value!("title", "value", String, value);
    Ok(to_value(&WORDS_RE.replace_all(&s, |caps: &Captures| {
        let first = caps["first"].to_uppercase();
        let rest = caps["rest"].to_lowercase();
        format!("{}{}", first, rest)
    }))
    .unwrap())
}
pub fn title ( value : Value , _ : HashMap < String , Value > ) -> Result < Value > { let s = try_get_value ! ( " " " " String value ) ; Ok ( to_value ( & WORDS_RE . replace_all ( & s , | caps : & Captures | { let first = caps [ " " ] . to_uppercase ( ) ; let rest = caps [ " " ] . to_lowercase ( ) ; format ! ( " " first rest ) } ) ) . unwrap ( ) ) }
Capitalizes each word in the string
Capitalizes each word in the string
value
HashMap<String, Value>
value
HashMap<String, Value>