Commit d3a7878f authored by Ophir LOJKINE's avatar Ophir LOJKINE

Make Color extend Debug

parent cd8a90a2
Pipeline #3680 passed with stages
in 3 minutes and 40 seconds
...@@ -18,10 +18,11 @@ use std::io::{self, Write, Read}; ...@@ -18,10 +18,11 @@ use std::io::{self, Write, Read};
use std::time::{SystemTime, Duration}; use std::time::{SystemTime, Duration};
use async::async_stdin; use async::async_stdin;
use std::env; use std::env;
use std::fmt::Debug;
use numtoa::NumToA; use numtoa::NumToA;
/// A terminal color. /// A terminal color.
pub trait Color { pub trait Color: Debug {
/// Write the foreground version of this color. /// Write the foreground version of this color.
fn write_fg(&self, f: &mut fmt::Formatter) -> fmt::Result; fn write_fg(&self, f: &mut fmt::Formatter) -> fmt::Result;
/// Write the background version of this color. /// Write the background version of this color.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment