From 5a8534a395b500a25cbc46ee15ec031c8231de59 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 4 Oct 2022 13:42:49 +0200 Subject: Parse basic math syntax --- src/util/eco.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/util') diff --git a/src/util/eco.rs b/src/util/eco.rs index 10a1f2ed..645880c4 100644 --- a/src/util/eco.rs +++ b/src/util/eco.rs @@ -353,6 +353,16 @@ impl FromIterator for EcoString { } } +impl FromIterator for EcoString { + fn from_iter>(iter: T) -> Self { + let mut s = Self::new(); + for piece in iter { + s.push_str(&piece); + } + s + } +} + impl From for String { fn from(s: EcoString) -> Self { match s.0 { -- cgit v1.2.3