fluent-ansi 0.2.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::Style;

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