Crate fluent_string

Source
Expand description

A trait that provides fluent versions of String mutation methods, allowing for a fluent construction of strings.

It also implements two conditional push combinators f_push_if and f_push_str_if to help with such things as comma-separated token construction.

§Examples

use fluent_string::*;

assert_eq!("my string".to_owned()
    .f_push_str(" is a bit longer now")
    .f_insert_str(12,", maybe,")
    .f_truncate(33),
    "my string is, maybe, a bit longer");

Traits§

FluentString