devela/text/grapheme/
trait.rs

1// devela::text::grapheme::trait
2//
3//!
4//
5// CHECK
6// - new with capacity?
7
8// use crate::MismatchedCapacity;
9
10/// Common trait for <abbr title="Extended Grapheme Cluster">EGC</abbr> types.
11pub trait Grapheme {
12    // /// Creates a new empty EGC.
13    // ///
14    // /// # Errors
15    // fn new() -> Result<Self, MismatchedCapacity>;
16    // /// Returns the length in bytes.
17    // fn len(&self) -> usize;
18}