Trait StringOrBuilder

Source
pub trait StringOrBuilder {
    // Required method
    fn merge_str(self) -> String;
}
Expand description

This trait allows for exchanging Strings and String builders.

Required Methods§

Source

fn merge_str(self) -> String

Merges the current instance into a String.

Implementations on Foreign Types§

Source§

impl StringOrBuilder for &str

Implementors§

Source§

impl<F> StringOrBuilder for F
where F: FnOnce(&mut ContentBuilder),