Enum PyStripScheme
pub(crate) enum PyStripScheme {
ConstantBetweenQuotes,
PerCaplet,
}Expand description
How caplet vols are stripped from cap quotes: ConstantBetweenQuotes,
or one vol PerCaplet.
Variants§
Implementations§
§impl PyStripScheme
impl PyStripScheme
Trait Implementations§
§impl Clone for PyStripScheme
impl Clone for PyStripScheme
§fn clone(&self) -> PyStripScheme
fn clone(&self) -> PyStripScheme
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 PyStripScheme
§impl Debug for PyStripScheme
impl Debug for PyStripScheme
impl Eq for PyStripScheme
§impl From<PyStripScheme> for StripScheme
impl From<PyStripScheme> for StripScheme
§fn from(value: PyStripScheme) -> Self
fn from(value: PyStripScheme) -> Self
Converts to this type from the input type.
§impl From<StripScheme> for PyStripScheme
impl From<StripScheme> for PyStripScheme
§fn from(value: StripScheme) -> Self
fn from(value: StripScheme) -> Self
Converts to this type from the input type.
§impl Hash for PyStripScheme
impl Hash for PyStripScheme
§impl IntoPy<Py<PyAny>> for PyStripScheme
impl IntoPy<Py<PyAny>> for PyStripScheme
§impl PartialEq for PyStripScheme
impl PartialEq for PyStripScheme
§impl PyClass for PyStripScheme
impl PyClass for PyStripScheme
§impl PyClassImpl for PyStripScheme
impl PyClassImpl for PyStripScheme
§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<PyStripScheme>
type ThreadChecker = SendablePyClass<PyStripScheme>
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 PyStripScheme
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyStripScheme
§impl PyMethods<PyStripScheme> for PyClassImplCollector<PyStripScheme>
impl PyMethods<PyStripScheme> for PyClassImplCollector<PyStripScheme>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyStripScheme
impl PyTypeInfo for PyStripScheme
§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 PyStripScheme
Auto Trait Implementations§
impl Freeze for PyStripScheme
impl RefUnwindSafe for PyStripScheme
impl Send for PyStripScheme
impl Sync for PyStripScheme
impl Unpin for PyStripScheme
impl UnsafeUnpin for PyStripScheme
impl UnwindSafe for PyStripScheme
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