re-export color::Color
This commit is contained in:
parent
366b57d3e7
commit
c0da03ad72
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mirc"
|
name = "mirc"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["wpbirney <wpb@360scada.com"]
|
authors = ["wpbirney <wpb@360scada.com"]
|
||||||
description = "Simple mirc color formatting for irc clients"
|
description = "Simple mirc color formatting for irc clients"
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
A simple mirc color code formatter partially inspired by [yansi](https://github.com/SergioBenitez/yansi)
|
A simple mirc color code formatter partially inspired by [yansi](https://github.com/SergioBenitez/yansi)
|
||||||
|
|
||||||
|
[docs.rs](https://docs.rs/mirc/latest/mirc/index.html)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
@ -44,4 +44,4 @@ impl fmt::Display for Color {
|
|||||||
Color::Unset => Ok(()),
|
Color::Unset => Ok(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
pub mod color;
|
pub mod color;
|
||||||
|
|
||||||
use color::Color;
|
pub use color::Color;
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
@ -33,11 +33,7 @@ macro_rules! constructors_for {
|
|||||||
|
|
||||||
impl<T> Paint<T> {
|
impl<T> Paint<T> {
|
||||||
pub fn new(fg: Color, bg: Color, content: T) -> Paint<T> {
|
pub fn new(fg: Color, bg: Color, content: T) -> Paint<T> {
|
||||||
Paint {
|
Paint { fg, bg, content }
|
||||||
fg,
|
|
||||||
bg,
|
|
||||||
content,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructors_for!(
|
constructors_for!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user