Struct PyCreditLinkedSwapDiagnostics
pub struct PyCreditLinkedSwapDiagnostics {
inner: CreditLinkedSwapDiagnostics,
}Expand description
What a credit default swap resolved to when it was priced: each part of its value, signed as it enters that value, and the risky annuity behind its quote.
The parts sum to npv(). The premium leg here is the survival-weighted
one: reading legs()[0] off the instrument and valuing it gives the
contract’s coupon schedule discounted without weighting each coupon by the
probability of surviving to collect it, which values a bond and not a swap.
Each part of a credit-linked swap’s value, in the trade currency, signed
as it enters that value, in five parts. The parts sum to
npv().
Fields§
§inner: CreditLinkedSwapDiagnosticsImplementations§
§impl PyCreditLinkedSwapDiagnostics
impl PyCreditLinkedSwapDiagnostics
fn __repr__(&self) -> String
pub(crate) fn independent(&self) -> f64
pub(crate) fn independent(&self) -> f64
The independent legs: discounted, whatever happens.
pub(crate) fn contingent(&self) -> f64
pub(crate) fn contingent(&self) -> f64
The contingent legs’ scheduled payments, survival-weighted.
pub(crate) fn contingent_accrual(&self) -> f64
pub(crate) fn contingent_accrual(&self) -> f64
The contingent legs’ accrual settled on default.
pub(crate) fn default_payments(&self) -> f64
pub(crate) fn default_payments(&self) -> f64
The default legs: paid on default, scaled by the loss.
pub(crate) fn recovery_payments(&self) -> f64
pub(crate) fn recovery_payments(&self) -> f64
The recovery legs: paid on default, scaled by the recovery.
Trait Implementations§
§impl Clone for PyCreditLinkedSwapDiagnostics
impl Clone for PyCreditLinkedSwapDiagnostics
§fn clone(&self) -> PyCreditLinkedSwapDiagnostics
fn clone(&self) -> PyCreditLinkedSwapDiagnostics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl DerefToPyAny for PyCreditLinkedSwapDiagnostics
§impl IntoPy<Py<PyAny>> for PyCreditLinkedSwapDiagnostics
impl IntoPy<Py<PyAny>> for PyCreditLinkedSwapDiagnostics
§impl PyClass for PyCreditLinkedSwapDiagnostics
impl PyClass for PyCreditLinkedSwapDiagnostics
§impl PyClassImpl for PyCreditLinkedSwapDiagnostics
impl PyClassImpl for PyCreditLinkedSwapDiagnostics
§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
§type ThreadChecker = SendablePyClass<PyCreditLinkedSwapDiagnostics>
type ThreadChecker = SendablePyClass<PyCreditLinkedSwapDiagnostics>
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCreditLinkedSwapDiagnostics
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCreditLinkedSwapDiagnostics
§impl PyMethods<PyCreditLinkedSwapDiagnostics> for PyClassImplCollector<PyCreditLinkedSwapDiagnostics>
impl PyMethods<PyCreditLinkedSwapDiagnostics> for PyClassImplCollector<PyCreditLinkedSwapDiagnostics>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyCreditLinkedSwapDiagnostics
impl PyTypeInfo for PyCreditLinkedSwapDiagnostics
§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.