pub enum DynTensorError {
SliceError(SlicingError),
InvalidArgument {
msg: String,
},
UnsupportedRank {
msg: String,
rank: usize,
},
}Expand description
Common Errors.
Variants§
SliceError(SlicingError)
An error occurred while slicing.
InvalidArgument
Invalid Arguments.
UnsupportedRank
The tensor rank is not supported for the requested operation.
Trait Implementations§
Source§impl Clone for DynTensorError
impl Clone for DynTensorError
Source§fn clone(&self) -> DynTensorError
fn clone(&self) -> DynTensorError
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 DynTensorError
impl Debug for DynTensorError
Source§impl Hash for DynTensorError
impl Hash for DynTensorError
Source§impl PartialEq for DynTensorError
impl PartialEq for DynTensorError
impl Eq for DynTensorError
impl StructuralPartialEq for DynTensorError
Auto Trait Implementations§
impl Freeze for DynTensorError
impl RefUnwindSafe for DynTensorError
impl Send for DynTensorError
impl Sync for DynTensorError
impl Unpin for DynTensorError
impl UnwindSafe for DynTensorError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.