pub enum AxialError {
KeyDuplicateError(String),
KeyMissingError(String),
ReservedWordError(String),
IncompatiblePrimitiveError(String, String),
}
Expand description
Errors produced by interacting with AxialSystem
Variants§
KeyDuplicateError(String)
Error produced when provide an ID which is already used
KeyMissingError(String)
Error produced when wrong key provided to modify functions
ReservedWordError(String)
Error produced when provide an ID which matches one of the reserved words
*LOOP
*ANNULAR
*SOLENOID
*COIL
**
IncompatiblePrimitiveError(String, String)
Error produced when attempt to modify a primitive with wrong physical parameter.
Trait Implementations§
Source§impl Debug for AxialError
impl Debug for AxialError
Source§impl Display for AxialError
impl Display for AxialError
Source§impl Error for AxialError
impl Error for AxialError
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 AxialError
impl PartialEq for AxialError
impl StructuralPartialEq for AxialError
Auto Trait Implementations§
impl Freeze for AxialError
impl RefUnwindSafe for AxialError
impl Send for AxialError
impl Sync for AxialError
impl Unpin for AxialError
impl UnwindSafe for AxialError
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