Enum PySigmaShape
pub(crate) enum PySigmaShape {
Flat,
Piecewise,
}Expand description
The shape a Hull-White volatility is calibrated in: Flat by least
squares, or Piecewise, one piece per strip expiry.
Variants§
Implementations§
§impl PySigmaShape
impl PySigmaShape
Trait Implementations§
§impl Clone for PySigmaShape
impl Clone for PySigmaShape
§fn clone(&self) -> PySigmaShape
fn clone(&self) -> PySigmaShape
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 PySigmaShape
§impl Debug for PySigmaShape
impl Debug for PySigmaShape
impl Eq for PySigmaShape
§impl From<PySigmaShape> for SigmaShape
impl From<PySigmaShape> for SigmaShape
§fn from(value: PySigmaShape) -> Self
fn from(value: PySigmaShape) -> Self
Converts to this type from the input type.
§impl From<SigmaShape> for PySigmaShape
impl From<SigmaShape> for PySigmaShape
§fn from(value: SigmaShape) -> Self
fn from(value: SigmaShape) -> Self
Converts to this type from the input type.
§impl Hash for PySigmaShape
impl Hash for PySigmaShape
§impl IntoPy<Py<PyAny>> for PySigmaShape
impl IntoPy<Py<PyAny>> for PySigmaShape
§impl PartialEq for PySigmaShape
impl PartialEq for PySigmaShape
§impl PyClass for PySigmaShape
impl PyClass for PySigmaShape
§impl PyClassImpl for PySigmaShape
impl PyClassImpl for PySigmaShape
§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<PySigmaShape>
type ThreadChecker = SendablePyClass<PySigmaShape>
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 PySigmaShape
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PySigmaShape
§impl PyMethods<PySigmaShape> for PyClassImplCollector<PySigmaShape>
impl PyMethods<PySigmaShape> for PyClassImplCollector<PySigmaShape>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PySigmaShape
impl PyTypeInfo for PySigmaShape
§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 PySigmaShape
Auto Trait Implementations§
impl Freeze for PySigmaShape
impl RefUnwindSafe for PySigmaShape
impl Send for PySigmaShape
impl Sync for PySigmaShape
impl Unpin for PySigmaShape
impl UnsafeUnpin for PySigmaShape
impl UnwindSafe for PySigmaShape
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