pub enum PortfolioError {
Valuation(ValuationError),
InvalidInput(&'static str),
}Expand description
Errors when evaluating a portfolio.
Variants§
Valuation(ValuationError)
InvalidInput(&'static str)
Trait Implementations§
Source§impl Clone for PortfolioError
impl Clone for PortfolioError
Source§fn clone(&self) -> PortfolioError
fn clone(&self) -> PortfolioError
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 PortfolioError
impl Debug for PortfolioError
Source§impl Display for PortfolioError
impl Display for PortfolioError
Source§impl Error for PortfolioError
impl Error for PortfolioError
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<PortfolioError> for StressError
impl From<PortfolioError> for StressError
Source§fn from(e: PortfolioError) -> Self
fn from(e: PortfolioError) -> 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 PortfolioError
impl PartialEq for PortfolioError
impl StructuralPartialEq for PortfolioError
Auto Trait Implementations§
impl Freeze for PortfolioError
impl RefUnwindSafe for PortfolioError
impl Send for PortfolioError
impl Sync for PortfolioError
impl Unpin for PortfolioError
impl UnsafeUnpin for PortfolioError
impl UnwindSafe for PortfolioError
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