pub fn new(content: &str) -> Option<&Self> {
        let mut iter = content.graphemes(true);
        if iter.next().is_some() && iter.next().is_none() {
            Some(Self::new_unchecked(content))
        } else {
            None
        }
    }
/// Creates a new grapheme cluster reference from a string borrowed
/// reference. The given string must be exactly a single grapheme cluster,
/// if not, `None` is returned.
Creates a new grapheme cluster reference from a string borrowed
reference. The given string must be exactly a single grapheme cluster,
if not, `None` is returned.
Creates a new grapheme cluster reference from a string borrowed reference . The given string must be exactly a single grapheme cluster if not ` None ` is returned .
pub fn new(content: &str) -> Option<&Self> {
        let mut iter = content.graphemes(true);
        if iter.next().is_some() && iter.next().is_none() {
            Some(Self::new_unchecked(content))
        } else {
            None
        }
    }
pub fn new ( content : & str ) -> Option < & Self > { let mut iter = content . graphemes ( true ) ; if iter . next ( ) . is_some ( ) && iter . next ( ) . is_none ( ) { Some ( Self :: new_unchecked ( content ) ) } else { None } }
Creates a new grapheme cluster reference from a string borrowed
reference.
Creates a new grapheme cluster reference from a string borrowed reference .
content
&str
content
&str