pub enum ContinuumError {
Unexpected(String, usize),
Unknown(String),
Size(usize, usize),
Invalid(String),
}Expand description
Errors of Continuum::parse.
Variants§
Unexpected(String, usize)
A token or character the syntax does not allow there, and its position (characters from 0).
Unknown(String)
A name that is neither a parameter nor part of the syntax (k_x, sx, kron, sqrt…).
Size(usize, usize)
Two matrices of different sizes (numbers of rows) in one expression.
Invalid(String)
Any other error, described by its message: a division by anything but a number, a power
that is not a non-negative integer, k in an expression that must be constant…
Trait Implementations§
Source§impl Debug for ContinuumError
impl Debug for ContinuumError
Source§impl Display for ContinuumError
impl Display for ContinuumError
Source§impl Error for ContinuumError
impl Error for ContinuumError
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 PartialEq for ContinuumError
impl PartialEq for ContinuumError
Source§fn eq(&self, other: &ContinuumError) -> bool
fn eq(&self, other: &ContinuumError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContinuumError
Auto Trait Implementations§
impl Freeze for ContinuumError
impl RefUnwindSafe for ContinuumError
impl Send for ContinuumError
impl Sync for ContinuumError
impl Unpin for ContinuumError
impl UnsafeUnpin for ContinuumError
impl UnwindSafe for ContinuumError
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
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more