pub struct Error { /* private fields */ }
Implementations§
Source§impl TaichiError
impl TaichiError
pub fn new(code: TiError, message: String) -> Self
pub fn code(&self) -> TiError
pub fn message(&self) -> &str
pub fn Success() -> Self
pub fn NotSupported<S: ToString>(message: S) -> Self
pub fn CorruptedData<S: ToString>(message: S) -> Self
pub fn NameNotFound<S: ToString>(message: S) -> Self
pub fn InvalidArgument<S: ToString>(message: S) -> Self
pub fn ArgumentNull<S: ToString>(message: S) -> Self
pub fn ArgumentOutOfRange<S: ToString>(message: S) -> Self
pub fn ArgumentNotFound<S: ToString>(message: S) -> Self
pub fn InvalidInterop<S: ToString>(message: S) -> Self
pub fn InvalidState<S: ToString>(message: S) -> Self
pub fn IncompatibleModule<S: ToString>(message: S) -> Self
pub fn OutOfMemory<S: ToString>(message: S) -> Self
Trait Implementations§
Source§impl Clone for TaichiError
impl Clone for TaichiError
Source§fn clone(&self) -> TaichiError
fn clone(&self) -> TaichiError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaichiError
impl Debug for TaichiError
Source§impl Display for TaichiError
impl Display for TaichiError
Source§impl Error for TaichiError
impl Error for TaichiError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl PartialEq for TaichiError
impl PartialEq for TaichiError
impl Eq for TaichiError
impl StructuralPartialEq for TaichiError
Auto Trait Implementations§
impl Freeze for TaichiError
impl RefUnwindSafe for TaichiError
impl Send for TaichiError
impl Sync for TaichiError
impl Unpin for TaichiError
impl UnwindSafe for TaichiError
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