pub enum W2nError {
Words2Num(String),
NotImplemented(String),
Key(String),
}Expand description
The exception kinds this layer can produce, each carrying the exact message Python formats. The PyO3 binder maps each variant onto the matching Python exception class.
Variants§
Words2Num(String)
words2num2.base.Words2NumError — a ValueError subclass.
NotImplemented(String)
NotImplementedError — raised by _resolve_lang.
Key(String)
KeyError — SCALE_SUFFIXES[scale_str] misses (e.g. "$5kn").
Python’s KeyError stringifies as repr(key), hence the odd quoting.
Implementations§
Trait Implementations§
impl Eq for W2nError
impl StructuralPartialEq for W2nError
Auto Trait Implementations§
impl Freeze for W2nError
impl RefUnwindSafe for W2nError
impl Send for W2nError
impl Sync for W2nError
impl Unpin for W2nError
impl UnsafeUnpin for W2nError
impl UnwindSafe for W2nError
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