Compare commits
1
Commits
fb6e6dfefd
...
7895660ba9
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user