Enum PyDefaultPaymentTime
pub(crate) enum PyDefaultPaymentTime {
AtDefault,
AtPeriodEnd,
AtMaturity,
}Expand description
When a credit-linked swap’s default-contingent payment is made:
AtDefault (the interval’s midpoint), AtPeriodEnd (the first
scheduled payment date on or after the default) or AtMaturity.
Variants§
Implementations§
Trait Implementations§
§impl Clone for PyDefaultPaymentTime
impl Clone for PyDefaultPaymentTime
§fn clone(&self) -> PyDefaultPaymentTime
fn clone(&self) -> PyDefaultPaymentTime
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 moreimpl Copy for PyDefaultPaymentTime
§impl Debug for PyDefaultPaymentTime
impl Debug for PyDefaultPaymentTime
impl Eq for PyDefaultPaymentTime
§impl From<DefaultPaymentTime> for PyDefaultPaymentTime
impl From<DefaultPaymentTime> for PyDefaultPaymentTime
§fn from(value: DefaultPaymentTime) -> Self
fn from(value: DefaultPaymentTime) -> Self
Converts to this type from the input type.
§impl From<PyDefaultPaymentTime> for DefaultPaymentTime
impl From<PyDefaultPaymentTime> for DefaultPaymentTime
§fn from(value: PyDefaultPaymentTime) -> Self
fn from(value: PyDefaultPaymentTime) -> Self
Converts to this type from the input type.
§impl Hash for PyDefaultPaymentTime
impl Hash for PyDefaultPaymentTime
§impl IntoPy<Py<PyAny>> for PyDefaultPaymentTime
impl IntoPy<Py<PyAny>> for PyDefaultPaymentTime
§impl PartialEq for PyDefaultPaymentTime
impl PartialEq for PyDefaultPaymentTime
§fn eq(&self, other: &PyDefaultPaymentTime) -> bool
fn eq(&self, other: &PyDefaultPaymentTime) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl PyClass for PyDefaultPaymentTime
impl PyClass for PyDefaultPaymentTime
§impl PyClassImpl for PyDefaultPaymentTime
impl PyClassImpl for PyDefaultPaymentTime
§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PyDefaultPaymentTime>
type ThreadChecker = SendablePyClass<PyDefaultPaymentTime>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
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 PyDefaultPaymentTime
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyDefaultPaymentTime
§impl PyMethods<PyDefaultPaymentTime> for PyClassImplCollector<PyDefaultPaymentTime>
impl PyMethods<PyDefaultPaymentTime> for PyClassImplCollector<PyDefaultPaymentTime>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyDefaultPaymentTime
impl PyTypeInfo for PyDefaultPaymentTime
§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
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
Checks if
object is an instance of this type.impl StructuralPartialEq for PyDefaultPaymentTime
Auto Trait Implementations§
impl Freeze for PyDefaultPaymentTime
impl RefUnwindSafe for PyDefaultPaymentTime
impl Send for PyDefaultPaymentTime
impl Sync for PyDefaultPaymentTime
impl Unpin for PyDefaultPaymentTime
impl UnsafeUnpin for PyDefaultPaymentTime
impl UnwindSafe for PyDefaultPaymentTime
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