From 56654ce07fb1319a21e6d5f2bdcc0d024c4db398 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 15 Nov 2023 19:02:11 +0100 Subject: Regenerate examples with hopefully more variety --- src/charset.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/charset.rs') diff --git a/src/charset.rs b/src/charset.rs index 71e1e84..b322324 100644 --- a/src/charset.rs +++ b/src/charset.rs @@ -19,6 +19,9 @@ impl Charset { chars.dedup(); Self(chars) } + pub fn iter(&self) -> impl Iterator + '_ { + self.0.iter().copied() + } pub fn intersects(&self, other: &Self) -> bool { let mut it1 = self.0.iter().peekable(); let mut it2 = other.0.iter().peekable(); -- cgit v1.2.3