pub enum EncodeError {
EmptyZigen,
UnknownZigen(char),
MissingStroke,
}Expand description
Why an encode_with_lookup call failed. Always recoverable — never
panics.
Variants§
EmptyZigen
decomp.zigen was empty.
UnknownZigen(char)
One of the 字根 wasn’t in the supplied lookup. Carries the offending character so the caller can log + continue past the bad row.
MissingStroke
A 2- or 3-字根 decomposition needs strokes for the 识别码 / 成字字根
rule but decomp.strokes was empty.
Trait Implementations§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§fn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
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 EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl PartialEq for EncodeError
impl PartialEq for EncodeError
Source§fn eq(&self, other: &EncodeError) -> bool
fn eq(&self, other: &EncodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnsafeUnpin for EncodeError
impl UnwindSafe for EncodeError
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