fluent-ansi 0.1.0

A fluent interface for ANSI terminal colors and styles in Rust.
Documentation
1
2
3
4
5
6
7
8
9
#![warn(missing_docs)]
use crate::Format;

/// A trait to convert a type into a [`Format`].
pub trait ToFormat: Into<Format> {
    /// Converts the type into a [`Format`].
    #[must_use]
    fn to_format(self) -> Format;
}