Enum andiskaz::string::StringOrGraphm [−][src]
pub enum StringOrGraphm<'buf> {
Graphm(&'buf TermGrapheme),
String(&'buf TermString),
}
Expand description
Either a string or a grapheme reference. Used by tstring_concat!
.
Variants
Graphm(&'buf TermGrapheme)
A terminal grapheme cluster.
Tuple Fields of Graphm
0: &'buf TermGrapheme
String(&'buf TermString)
A terminal string.
Tuple Fields of String
0: &'buf TermString
Implementations
The inherent string under this TermString
or this TermGrapheme
.
If it this is a TermString
, return it; if this is a
TermGrapheme
, get the inherent TermString
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'buf> RefUnwindSafe for StringOrGraphm<'buf>
impl<'buf> Send for StringOrGraphm<'buf>
impl<'buf> Sync for StringOrGraphm<'buf>
impl<'buf> Unpin for StringOrGraphm<'buf>
impl<'buf> UnwindSafe for StringOrGraphm<'buf>
Blanket Implementations
Mutably borrows from an owned value. Read more