erebus 0.1.7

A CLI message generation library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod builder;

use yansi::Color;

use crate::files::FileId;
use std::ops::Range;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Label<Id: FileId> {
    pub(crate) file: Id,
    pub(crate) span: Range<usize>,
    pub(crate) color: Color,
    pub(crate) content: Option<String>,
}