Enum AssetSwapError
#[non_exhaustive]pub enum AssetSwapError {
CallableUnderlying,
CreditTaggedUnderlying,
FloatScheduleTooShort,
FloatScheduleNotAscending,
NonPositiveNotional,
NonFiniteTerms,
}Expand description
An asset swap that cannot be built.
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.
CallableUnderlying
The bond carries a call schedule; the package is written on a bullet.
CreditTaggedUnderlying
The bond is credit-tagged; the package values it risk-free.
FloatScheduleTooShort
The floating schedule has fewer than two dates, or the package would start on or after the bond’s maturity.
FloatScheduleNotAscending
The floating schedule is not strictly ascending.
NonPositiveNotional
The notional is not finite and strictly positive.
NonFiniteTerms
The traded dirty price or spread is not a finite number.
Trait Implementations§
§impl Clone for AssetSwapError
impl Clone for AssetSwapError
§fn clone(&self) -> AssetSwapError
fn clone(&self) -> AssetSwapError
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 AssetSwapError
impl Debug for AssetSwapError
§impl Display for AssetSwapError
impl Display for AssetSwapError
§impl Error for AssetSwapError
impl Error for AssetSwapError
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 AssetSwapError
impl PartialEq for AssetSwapError
impl StructuralPartialEq for AssetSwapError
Auto Trait Implementations§
impl Freeze for AssetSwapError
impl RefUnwindSafe for AssetSwapError
impl Send for AssetSwapError
impl Sync for AssetSwapError
impl Unpin for AssetSwapError
impl UnsafeUnpin for AssetSwapError
impl UnwindSafe for AssetSwapError
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