pub struct EquationError {
pub message: String,
pub type_: EquationErrorType,
}Expand description
The EquationError struct is used to represent an error that can occur in the equation solver.
Fields§
§message: StringThe message of the error.
type_: EquationErrorTypeThe type of the error.
Implementations§
Source§impl EquationError
impl EquationError
Sourcepub fn new(message: String, type_: EquationErrorType) -> EquationError
pub fn new(message: String, type_: EquationErrorType) -> EquationError
Creates a new EquationError from the message and the type of error.
Trait Implementations§
Source§impl Clone for EquationError
impl Clone for EquationError
Source§fn clone(&self) -> EquationError
fn clone(&self) -> EquationError
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 EquationError
impl Debug for EquationError
Source§impl Display for EquationError
impl Display for EquationError
Source§impl Error for EquationError
impl Error for EquationError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl PartialEq for EquationError
impl PartialEq for EquationError
impl StructuralPartialEq for EquationError
Auto Trait Implementations§
impl Freeze for EquationError
impl RefUnwindSafe for EquationError
impl Send for EquationError
impl Sync for EquationError
impl Unpin for EquationError
impl UnwindSafe for EquationError
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