pub enum ValuationError {
InvalidContract(ContractSpecError),
FxUnavailable(FxConversionError),
NonPositivePrice(f64),
NonFiniteInput(&'static str),
}Expand description
Errors during contract valuation and sizing calculations.
Variants§
Trait Implementations§
Source§impl Clone for ValuationError
impl Clone for ValuationError
Source§fn clone(&self) -> ValuationError
fn clone(&self) -> ValuationError
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 Debug for ValuationError
impl Debug for ValuationError
Source§impl Display for ValuationError
impl Display for ValuationError
Source§impl Error for ValuationError
impl Error for ValuationError
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 From<ContractSpecError> for ValuationError
impl From<ContractSpecError> for ValuationError
Source§fn from(e: ContractSpecError) -> Self
fn from(e: ContractSpecError) -> Self
Converts to this type from the input type.
Source§impl From<FxConversionError> for ValuationError
impl From<FxConversionError> for ValuationError
Source§fn from(e: FxConversionError) -> Self
fn from(e: FxConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ValuationError> for PortfolioError
impl From<ValuationError> for PortfolioError
Source§fn from(e: ValuationError) -> Self
fn from(e: ValuationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValuationError
impl PartialEq for ValuationError
impl StructuralPartialEq for ValuationError
Auto Trait Implementations§
impl Freeze for ValuationError
impl RefUnwindSafe for ValuationError
impl Send for ValuationError
impl Sync for ValuationError
impl Unpin for ValuationError
impl UnsafeUnpin for ValuationError
impl UnwindSafe for ValuationError
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