pub struct ZwError { /* private fields */ }Expand description
ZW3D API 错误
封装 ZW3D C API 返回的错误码。
Implementations§
Source§impl ZwError
impl ZwError
Sourcepub const GENERAL_ERROR: Self
pub const GENERAL_ERROR: Self
通用错误
Sourcepub const INVALID_INPUT: Self
pub const INVALID_INPUT: Self
无效输入
Sourcepub const INPUT_ERROR: Self
pub const INPUT_ERROR: Self
输入错误
Sourcepub const INPUT_TYPE_ERROR: Self
pub const INPUT_TYPE_ERROR: Self
输入类型错误
Trait Implementations§
Source§impl Error for ZwError
impl Error for ZwError
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()
impl Copy for ZwError
impl Eq for ZwError
impl StructuralPartialEq for ZwError
Auto Trait Implementations§
impl Freeze for ZwError
impl RefUnwindSafe for ZwError
impl Send for ZwError
impl Sync for ZwError
impl Unpin for ZwError
impl UnwindSafe for ZwError
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