pub enum EinopsError {
Parse(String),
Pattern(String),
InvalidInput(String),
}Expand description
Different categories of error that can be encountered
Variants§
Parse(String)
Error when parsing the pattern/expression provided
Pattern(String)
Error when a pattern violates rules set by einops
InvalidInput(String)
Error because of invalid/missing identifiers of axes, or their sizes
Trait Implementations§
Source§impl Debug for EinopsError
impl Debug for EinopsError
Source§impl Display for EinopsError
impl Display for EinopsError
Source§impl Error for EinopsError
impl Error for EinopsError
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 EinopsError
impl RefUnwindSafe for EinopsError
impl Send for EinopsError
impl Sync for EinopsError
impl Unpin for EinopsError
impl UnwindSafe for EinopsError
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