#[non_exhaustive]pub enum TensorSourceError {
NotFound(String),
NoActive,
IndexOutOfBounds(usize, usize),
}Expand description
Errors from tensor source operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound(String)
Tensor source not found in registry
NoActive
No active tensor source set
IndexOutOfBounds(usize, usize)
Index out of bounds for the active source
Trait Implementations§
Source§impl Debug for TensorSourceError
impl Debug for TensorSourceError
Source§impl Display for TensorSourceError
impl Display for TensorSourceError
Source§impl Error for TensorSourceError
impl Error for TensorSourceError
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()
Source§impl From<TensorSourceError> for XlogError
impl From<TensorSourceError> for XlogError
Source§fn from(e: TensorSourceError) -> Self
fn from(e: TensorSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TensorSourceError
impl RefUnwindSafe for TensorSourceError
impl Send for TensorSourceError
impl Sync for TensorSourceError
impl Unpin for TensorSourceError
impl UnsafeUnpin for TensorSourceError
impl UnwindSafe for TensorSourceError
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