pub enum ChineseToNumberError {
ChineseNumberEmpty,
ChineseNumberIncorrect {
char_index: usize,
},
Overflow,
Underflow,
}
Available on crate feature
chinese-to-number
only.Expand description
將中文數字轉成數值時發生的錯誤。
Variants§
Trait Implementations§
source§impl Clone for ChineseToNumberError
impl Clone for ChineseToNumberError
source§fn clone(&self) -> ChineseToNumberError
fn clone(&self) -> ChineseToNumberError
Returns a copy of the value. Read more
1.0.0 · 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 ChineseToNumberError
impl Debug for ChineseToNumberError
source§impl Display for ChineseToNumberError
impl Display for ChineseToNumberError
source§impl Error for ChineseToNumberError
Available on crate feature std
only.
impl Error for ChineseToNumberError
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for ChineseToNumberError
impl PartialEq for ChineseToNumberError
source§fn eq(&self, other: &ChineseToNumberError) -> bool
fn eq(&self, other: &ChineseToNumberError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChineseToNumberError
impl Eq for ChineseToNumberError
impl StructuralEq for ChineseToNumberError
impl StructuralPartialEq for ChineseToNumberError
Auto Trait Implementations§
impl RefUnwindSafe for ChineseToNumberError
impl Send for ChineseToNumberError
impl Sync for ChineseToNumberError
impl Unpin for ChineseToNumberError
impl UnwindSafe for ChineseToNumberError
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