pub enum TermGraphemeError {
InvalidControl(InvalidControl),
DiacriticAtStart(DiacriticAtStart),
NotAGrapheme(NotAGrapheme),
}Expand description
Possible errors when creating a
TermGrapheme.
Variants§
InvalidControl(InvalidControl)
Invalid control character found in the given input string.
DiacriticAtStart(DiacriticAtStart)
The given input string starts with a diacritic.
NotAGrapheme(NotAGrapheme)
The given input is not made of only one grapheme
(TermGrapheme).
Trait Implementations§
Source§impl Clone for TermGraphemeError
impl Clone for TermGraphemeError
Source§fn clone(&self) -> TermGraphemeError
fn clone(&self) -> TermGraphemeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TermGraphemeError
impl Debug for TermGraphemeError
Source§impl Display for TermGraphemeError
impl Display for TermGraphemeError
Source§impl Error for TermGraphemeError
impl Error for TermGraphemeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DiacriticAtStart> for TermGraphemeError
impl From<DiacriticAtStart> for TermGraphemeError
Source§fn from(error: DiacriticAtStart) -> Self
fn from(error: DiacriticAtStart) -> Self
Converts to this type from the input type.
Source§impl From<InvalidControl> for TermGraphemeError
impl From<InvalidControl> for TermGraphemeError
Source§fn from(error: InvalidControl) -> Self
fn from(error: InvalidControl) -> Self
Converts to this type from the input type.
Source§impl From<NotAGrapheme> for TermGraphemeError
impl From<NotAGrapheme> for TermGraphemeError
Source§fn from(error: NotAGrapheme) -> Self
fn from(error: NotAGrapheme) -> Self
Converts to this type from the input type.
Source§impl From<TermStringError> for TermGraphemeError
impl From<TermStringError> for TermGraphemeError
Source§fn from(error: TermStringError) -> Self
fn from(error: TermStringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TermGraphemeError
impl RefUnwindSafe for TermGraphemeError
impl Send for TermGraphemeError
impl Sync for TermGraphemeError
impl Unpin for TermGraphemeError
impl UnsafeUnpin for TermGraphemeError
impl UnwindSafe for TermGraphemeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more