#[repr(transparent)]pub struct TensorError(pub Integer);Expand description
Tensor error codes.
C++ equivalent: MTL::TensorError
Tuple Fields§
§0: IntegerImplementations§
Source§impl TensorError
impl TensorError
pub const NONE: Self
pub const INTERNAL_ERROR: Self
pub const INVALID_DESCRIPTOR: Self
Trait Implementations§
Source§impl Clone for TensorError
impl Clone for TensorError
Source§fn clone(&self) -> TensorError
fn clone(&self) -> TensorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorError
impl Debug for TensorError
Source§impl Default for TensorError
impl Default for TensorError
Source§fn default() -> TensorError
fn default() -> TensorError
Returns the “default value” for a type. Read more
Source§impl Hash for TensorError
impl Hash for TensorError
Source§impl PartialEq for TensorError
impl PartialEq for TensorError
impl Copy for TensorError
impl Eq for TensorError
impl StructuralPartialEq for TensorError
Auto Trait Implementations§
impl Freeze for TensorError
impl RefUnwindSafe for TensorError
impl Send for TensorError
impl Sync for TensorError
impl Unpin for TensorError
impl UnwindSafe for TensorError
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