FormattedStringAppendable

Trait FormattedStringAppendable 

Source
pub trait FormattedStringAppendable {
    // Required method
    fn append(&mut self, s: FormattedString) -> &mut Self;

    // Provided methods
    fn append_styled<S: ToString>(&mut self, s: S, style: Style) -> &mut Self { ... }
    fn append_plain<S: ToString>(&mut self, s: S) -> &mut Self { ... }
}

Required Methods§

Source

fn append(&mut self, s: FormattedString) -> &mut Self

Provided Methods§

Source

fn append_styled<S: ToString>(&mut self, s: S, style: Style) -> &mut Self

Source

fn append_plain<S: ToString>(&mut self, s: S) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§