pub enum HyphenationError {
UnsupportedLocale(String),
LoadFailed {
locale: String,
message: String,
},
}Expand description
Why a hyphenation dictionary could not be registered.
Variants§
UnsupportedLocale(String)
The locale tag names no language that has hyphenation patterns.
LoadFailed
The dictionary could not be read or parsed.
Trait Implementations§
Source§impl Debug for HyphenationError
impl Debug for HyphenationError
Source§impl Display for HyphenationError
impl Display for HyphenationError
Source§impl Error for HyphenationError
impl Error for HyphenationError
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()
Auto Trait Implementations§
impl Forget for HyphenationError
impl Freeze for HyphenationError
impl Move for HyphenationError
impl RefUnwindSafe for HyphenationError
impl Send for HyphenationError
impl Sync for HyphenationError
impl Unpin for HyphenationError
impl UnsafeUnpin for HyphenationError
impl UnwindSafe for HyphenationError
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