#[non_exhaustive]pub enum GridEvaluationError<E> {
Grid(FieldError),
Evaluation {
index: GridVertexId,
composition: [f64; 3],
source: E,
},
}Expand description
Error returned while evaluating a user scalar function over a regular grid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Grid(FieldError)
The regular grid or resulting scalar field could not be constructed.
Evaluation
The user callback failed at one canonical composition-grid vertex.
Trait Implementations§
Source§impl<E> Clone for GridEvaluationError<E>where
E: Clone,
impl<E> Clone for GridEvaluationError<E>where
E: Clone,
Source§fn clone(&self) -> GridEvaluationError<E>
fn clone(&self) -> GridEvaluationError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> Debug for GridEvaluationError<E>where
E: Debug,
impl<E> Debug for GridEvaluationError<E>where
E: Debug,
Source§impl<E> Display for GridEvaluationError<E>where
E: Display,
impl<E> Display for GridEvaluationError<E>where
E: Display,
Source§impl<E> Error for GridEvaluationError<E>where
E: Error + 'static,
impl<E> Error for GridEvaluationError<E>where
E: Error + 'static,
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<E> From<FieldError> for GridEvaluationError<E>
impl<E> From<FieldError> for GridEvaluationError<E>
Source§fn from(source: FieldError) -> GridEvaluationError<E>
fn from(source: FieldError) -> GridEvaluationError<E>
Converts to this type from the input type.
Source§impl<E> PartialEq for GridEvaluationError<E>where
E: PartialEq,
impl<E> PartialEq for GridEvaluationError<E>where
E: PartialEq,
impl<E> StructuralPartialEq for GridEvaluationError<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Freeze for GridEvaluationError<E>where
E: Freeze,
impl<E> RefUnwindSafe for GridEvaluationError<E>where
E: RefUnwindSafe,
impl<E> Send for GridEvaluationError<E>where
E: Send,
impl<E> Sync for GridEvaluationError<E>where
E: Sync,
impl<E> Unpin for GridEvaluationError<E>where
E: Unpin,
impl<E> UnsafeUnpin for GridEvaluationError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for GridEvaluationError<E>where
E: UnwindSafe,
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