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(BinomialError),
ChiSquared(ChiSquaredError),
Exponential(ExpError),
Gamma(GammaError),
Gaussian(NormalError),
Poisson(PoissonError),
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(BinomialError)
Error variant from constructing Binomial distribution.
ChiSquared(ChiSquaredError)
Error variant from constructing ChiSquared distribution.
Exponential(ExpError)
Error variant from constructing Exponential distribution.
Gamma(GammaError)
Error variant from constructing Gamma distribution.
Gaussian(NormalError)
Error variant from constructing Gaussian distribution.
Poisson(PoissonError)
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) -> Self
fn from(source: BernoulliError) -> Self
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: BinomialError) -> Self
fn from(source: BinomialError) -> Self
Source§impl From<ChiSquaredError> for RustQuantError
impl From<ChiSquaredError> for RustQuantError
Source§fn from(source: ChiSquaredError) -> Self
fn from(source: ChiSquaredError) -> Self
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: GammaError) -> Self
fn from(source: GammaError) -> Self
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: NormalError) -> Self
fn from(source: NormalError) -> Self
Source§impl From<Error> for RustQuantError
impl From<Error> for RustQuantError
Source§fn from(source: PoissonError) -> Self
fn from(source: PoissonError) -> Self
Source§impl From<PolarsError> for RustQuantError
impl From<PolarsError> for RustQuantError
Source§fn from(source: PolarsError) -> Self
fn from(source: PolarsError) -> Self
Source§impl From<YahooError> for RustQuantError
impl From<YahooError> for RustQuantError
Source§fn from(source: YahooError) -> Self
fn from(source: YahooError) -> Self
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<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.