pub struct MlxCError {
pub operation: &'static str,
pub description: String,
}Expand description
One failed MLX-C operation: what was attempted and what MLX-C reported.
Fields§
§operation: &'static strThe attempted operation, phrased the way runtime error reports name it.
description: StringThe description MLX-C reported, or a fallback when it reported none.
Trait Implementations§
Source§impl Error for MlxCError
impl Error for MlxCError
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()
Auto Trait Implementations§
impl Freeze for MlxCError
impl RefUnwindSafe for MlxCError
impl Send for MlxCError
impl Sync for MlxCError
impl Unpin for MlxCError
impl UnsafeUnpin for MlxCError
impl UnwindSafe for MlxCError
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