diff options
Diffstat (limited to 'src/charset.rs')
-rw-r--r-- | src/charset.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<Item = char> + '_ { + 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(); |