pub enum RustQuantError {
Show 22 variants
NotImplemented(String),
ComputationError(String),
InvalidArgument(String),
ConditionViolated(String),
FileOperationFailed(String),
MissingInput(String),
YahooError(YahooError),
PolarsError(PolarsError),
IoError(Error),
Bernoulli(BernoulliError),
Binomial(Error),
ChiSquared(ChiSquaredError),
Exponential(Error),
Gamma(Error),
Gaussian(Error),
Poisson(Error),
MatrixInversionFailed,
SvdDecompositionFailed,
SvdDecompositionFailedOnU,
UnequalLength,
Unfitted,
OutsideOfRange,
}
Expand description
Error type for RustQuant
.
Variants§
NotImplemented(String)
Not implemented error.
ComputationError(String)
This error indicates that an problem occurred in the computation.
InvalidArgument(String)
This error indicates an invalid parameter/argument was passed.
ConditionViolated(String)
This error indicates that a condition is violated.
FileOperationFailed(String)
This error indicates that a file operation failed.
MissingInput(String)
Error variant arising from missing inputs.
YahooError(YahooError)
Error variant arising from the Yahoo! Finance API.
PolarsError(PolarsError)
Error variant arising from Polars.
IoError(Error)
Error variant arising from std::io
.
Bernoulli(BernoulliError)
Error variant from constructing Bernoulli distribution.
Binomial(Error)
Error variant from constructing Binomial distribution.
ChiSquared(ChiSquaredError)
Error variant from constructing ChiSquared distribution.
Exponential(Error)
Error variant from constructing Exponential distribution.
Gamma(Error)
Error variant from constructing Gamma distribution.
Gaussian(Error)
Error variant from constructing Gaussian distribution.
Poisson(Error)
Error variant from constructing Poisson distribution.
MatrixInversionFailed
failed to invert matrix
SvdDecompositionFailed
failed to perform SVD decomposition
SvdDecompositionFailedOnU
failed to compute u
UnequalLength
Unequal length of xs
and ys
.
Unfitted
Interpolator has not been fitted.
OutsideOfRange
Outside of interpolation range.
Trait Implementations§
Source§impl Debug for RustQuantError
impl Debug for RustQuantError
Source§impl Display for RustQuantError
impl Display for RustQuantError
Source§impl Error for RustQuantError
impl Error for RustQuantError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BernoulliError> for RustQuantError
impl From<BernoulliError> for RustQuantError
Source§fn from(source: BernoulliError) -> RustQuantError
fn from(source: BernoulliError) -> RustQuantError
Source§impl From<ChiSquaredError> for RustQuantError
impl From<ChiSquaredError> for RustQuantError
Source§fn from(source: ChiSquaredError) -> RustQuantError
fn from(source: ChiSquaredError) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: Error) -> RustQuantError
fn from(source: Error) -> RustQuantError
Source§impl From<PolarsError> for RustQuantError
impl From<PolarsError> for RustQuantError
Source§fn from(source: PolarsError) -> RustQuantError
fn from(source: PolarsError) -> RustQuantError
Source§impl From<YahooError> for RustQuantError
impl From<YahooError> for RustQuantError
Source§fn from(source: YahooError) -> RustQuantError
fn from(source: YahooError) -> RustQuantError
Auto Trait Implementations§
impl Freeze for RustQuantError
impl !RefUnwindSafe for RustQuantError
impl Send for RustQuantError
impl Sync for RustQuantError
impl Unpin for RustQuantError
impl !UnwindSafe for RustQuantError
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
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<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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString
. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.