pub enum IntegratorError<T, E> {
ExceededMaxFunctionEvaluations,
NonFiniteErrorEstimate,
NoSegments,
EmptySegment,
NonFiniteIntegrand {
point: T,
},
PossibleSingularity {
singularity: T,
},
PieceTooSmall,
User(E),
}Expand description
Error type for integrator
Variants§
ExceededMaxFunctionEvaluations
NonFiniteErrorEstimate
NoSegments
EmptySegment
NonFiniteIntegrand
Fields
§
point: TPossibleSingularity
Fields
§
singularity: TPieceTooSmall
User(E)
Trait Implementations§
Source§impl<T, E> Display for IntegratorError<T, E>where
T: Debug,
impl<T, E> Display for IntegratorError<T, E>where
T: Debug,
Source§impl<T, E> Error for IntegratorError<T, E>
impl<T, E> Error for IntegratorError<T, E>
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<T: PartialEq, E: PartialEq> PartialEq for IntegratorError<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq for IntegratorError<T, E>
Source§fn eq(&self, other: &IntegratorError<T, E>) -> bool
fn eq(&self, other: &IntegratorError<T, E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq, E: PartialEq> StructuralPartialEq for IntegratorError<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for IntegratorError<T, E>
impl<T, E> RefUnwindSafe for IntegratorError<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for IntegratorError<T, E>
impl<T, E> Sync for IntegratorError<T, E>
impl<T, E> Unpin for IntegratorError<T, E>
impl<T, E> UnsafeUnpin for IntegratorError<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for IntegratorError<T, E>where
T: UnwindSafe,
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
Source§impl<Proc> GenerateBuilder for Proc
impl<Proc> GenerateBuilder for Proc
Source§impl<Proc> GenerateBuilderFallible for Proc
impl<Proc> GenerateBuilderFallible for Proc
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.