fn upper_first_filter(value: &Value, _: &HashMap<String, Value>) -> TeraResult<Value> {
        let mut s = tera::try_get_value!("upper_first_filter", "value", String, value);
        let mut c = s.chars();
        s = match c.next() {
            None => String::new(),
            Some(f) => f.to_uppercase().collect::<String>() + c.as_str(),
        };
        Ok(tera::to_value(&s)?)
    }
/// Filter for making the first character of a string uppercase.
Filter for making the first character of a string uppercase.
Filter for making the first character of a string uppercase .
fn upper_first_filter(value: &Value, _: &HashMap<String, Value>) -> TeraResult<Value> {
        let mut s = tera::try_get_value!("upper_first_filter", "value", String, value);
        let mut c = s.chars();
        s = match c.next() {
            None => String::new(),
            Some(f) => f.to_uppercase().collect::<String>() + c.as_str(),
        };
        Ok(tera::to_value(&s)?)
    }
fn upper_first_filter ( value : & Value , _ : & HashMap < String , Value > ) -> TeraResult < Value > { let mut s = tera :: try_get_value ! ( " " " " String value ) ; let mut c = s . chars ( ) ; s = match c . next ( ) { None => String :: new ( ) , Some ( f ) => f . to_uppercase ( ) . collect :: < String > ( ) + c . as_str ( ) , } ; Ok ( tera :: to_value ( & s ) ? ) }
Filter for making the first character of a string uppercase.
Filter for making the first character of a string uppercase .
value
&HashMap<String, Value>
value
&HashMap<String, Value>