Compare commits

...
1 Commits
+4
View File
@@ -45,6 +45,10 @@ impl AnsiStyles {
self.add_style(&style); self.add_style(&style);
self 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) { pub fn apply(&mut self, str: &str) {
self.text = str.into(); self.text = str.into();
} }