Enum FinancingError
#[non_exhaustive]pub enum FinancingError {
MixedCurrencies {
bond: Currency,
funding: Currency,
},
MalformedResets,
EmptyBasket,
NonPositiveWeight {
constituent: usize,
},
SettlementBeforeForward {
forward: NaiveDate,
settlement: NaiveDate,
},
NonPositiveEquityTerms,
MalformedEquityBasket,
}Expand description
A financing trade that cannot be built as specified.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MixedCurrencies
A swap whose funding currency differs from the bond’s — the composite case, not supported in this version.
MalformedResets
Fewer than two reset boundaries, or boundaries not strictly ascending.
EmptyBasket
A basket with no constituents.
NonPositiveWeight
A constituent whose weight is not finite and strictly positive.
SettlementBeforeForward
A forward whose settlement precedes its forward date.
Fields
NonPositiveEquityTerms
An equity swap whose quantity or initial price is not finite and strictly positive.
MalformedEquityBasket
An equity swap basket that is empty or names an equity twice.
Trait Implementations§
§impl Clone for FinancingError
impl Clone for FinancingError
§fn clone(&self) -> FinancingError
fn clone(&self) -> FinancingError
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 more§impl Debug for FinancingError
impl Debug for FinancingError
§impl Display for FinancingError
impl Display for FinancingError
impl Eq for FinancingError
§impl Error for FinancingError
impl Error for FinancingError
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()
§impl PartialEq for FinancingError
impl PartialEq for FinancingError
impl StructuralPartialEq for FinancingError
Auto Trait Implementations§
impl Freeze for FinancingError
impl RefUnwindSafe for FinancingError
impl Send for FinancingError
impl Sync for FinancingError
impl Unpin for FinancingError
impl UnsafeUnpin for FinancingError
impl UnwindSafe for FinancingError
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