pub enum PDEError {
BoundaryConditions(String),
DomainError(String),
DiscretizationError(String),
MOLError(String),
FiniteDifferenceError(String),
FiniteElementError(String),
SpectralError(String),
InvalidGrid(String),
InvalidParameter(String),
ComputationError(String),
ODEError(IntegrateError),
Other(String),
}Expand description
Errors that may occur in PDE-related operations
Variants§
BoundaryConditions(String)
Error with boundary conditions specification
DomainError(String)
Error with domain specification
DiscretizationError(String)
Error with discretization
MOLError(String)
Error with method of lines integration
FiniteDifferenceError(String)
Error with finite difference computation
FiniteElementError(String)
Error with finite element computation
SpectralError(String)
Error with spectral method computation
InvalidGrid(String)
Error with grid specification or configuration
InvalidParameter(String)
Error with parameter specification
ComputationError(String)
General computation error
ODEError(IntegrateError)
Underlying ODE solver error during method of lines integration
Other(String)
Other PDE-related errors
Implementations§
Trait Implementations§
Source§impl Error for PDEError
impl Error for PDEError
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<IntegrateError> for PDEError
impl From<IntegrateError> for PDEError
Source§fn from(err: IntegrateError) -> Self
fn from(err: IntegrateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PDEError
impl RefUnwindSafe for PDEError
impl Send for PDEError
impl Sync for PDEError
impl Unpin for PDEError
impl UnwindSafe for PDEError
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> 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