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 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 moreimpl Copy for ChineseToNumberError
Source§impl Debug for ChineseToNumberError
impl Debug for ChineseToNumberError
Source§impl Display for ChineseToNumberError
impl Display for ChineseToNumberError
impl Eq for ChineseToNumberError
Source§impl Error for ChineseToNumberError
impl Error for ChineseToNumberError
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 PartialEq for ChineseToNumberError
impl PartialEq for ChineseToNumberError
impl StructuralPartialEq for ChineseToNumberError
Auto Trait Implementations§
impl Freeze for ChineseToNumberError
impl RefUnwindSafe for ChineseToNumberError
impl Send for ChineseToNumberError
impl Sync for ChineseToNumberError
impl Unpin for ChineseToNumberError
impl UnsafeUnpin 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