refactor, allowed to specify full underline

This commit is contained in:
Anton-4 2022-02-26 10:59:38 +01:00
parent 6e752645a6
commit 26556c631b
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD
4 changed files with 17 additions and 9 deletions

View file

@ -66,11 +66,19 @@ pub enum Attribute {
},
Underline {
underline_start: UnderlineStart,
underline_end: UnderlineEnd,
underline_spec: UnderlineSpec,
},
}
#[derive(Debug)]
pub enum UnderlineSpec {
Partial{
start: usize,
end: usize,
},
Full
}
#[derive(Debug, Default)]
pub struct Attributes {
pub all: Vec<Attribute>,