mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 13:39:06 +00:00
save game
This commit is contained in:
parent
d7f0279051
commit
239da146c0
@ -383,6 +383,11 @@ impl SmartString {
|
||||
Self { fragments }
|
||||
}
|
||||
|
||||
fn from_visible<T>(string: T) -> Self
|
||||
where T: Display {
|
||||
Self { fragments: vec![(true, string.to_string())] }
|
||||
}
|
||||
|
||||
fn char_len(&self) -> usize {
|
||||
self.fragments.iter()
|
||||
.filter(|(visible, _)| *visible)
|
||||
|
Loading…
Reference in New Issue
Block a user