summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-02 15:47:25 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-02 15:47:25 +0100
commit56923ee472f1eaa67d3543e19372823139205885 (patch)
treeaccd9e05fb5875457967c5b456626767ff3e9c9e /src/util
parent9bc90c371fb41a2d6dc08eb4673e5be15f829514 (diff)
Multi-part numbering patterns
Diffstat (limited to 'src/util')
-rw-r--r--src/util/eco.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/eco.rs b/src/util/eco.rs
index 5a4d7629..8f519504 100644
--- a/src/util/eco.rs
+++ b/src/util/eco.rs
@@ -368,6 +368,14 @@ impl FromIterator<Self> for EcoString {
}
}
+impl Extend<char> for EcoString {
+ fn extend<T: IntoIterator<Item = char>>(&mut self, iter: T) {
+ for c in iter {
+ self.push(c);
+ }
+ }
+}
+
impl From<EcoString> for String {
fn from(s: EcoString) -> Self {
match s.0 {