desperately require a redesign
This commit is contained in:
1 parent
fb6e6dfefd
commit
7895660ba9
1 file changed
+4
@@ -45,6 +45,10 @@ impl AnsiStyles {
|
||||
self.add_style(&style);
|
||||
self
|
||||
}
|
||||
pub fn clone_with_style(&mut self,style: Style) -> Self {
|
||||
let c= self.clone();
|
||||
c.style(style)
|
||||
}
|
||||
pub fn apply(&mut self, str: &str) {
|
||||
self.text = str.into();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user