pub struct I32TimeSeriesObserverWrapper {
inner: Option<Box<dyn TimeSeriesObserver<i32> + Send>>,
}
Fields
inner: Option<Box<dyn TimeSeriesObserver<i32> + Send>>
Implementations
sourceimpl I32TimeSeriesObserverWrapper
impl I32TimeSeriesObserverWrapper
pub fn new<S>(val: S) -> Self where
S: TimeSeriesObserver<i32> + Send + 'static,
pub fn take(&mut self) -> Box<dyn TimeSeriesObserver<i32>>
Trait Implementations
sourceimpl IntoPy<Py<PyAny>> for I32TimeSeriesObserverWrapper
impl IntoPy<Py<PyAny>> for I32TimeSeriesObserverWrapper
sourceimpl PyClass for I32TimeSeriesObserverWrapper
impl PyClass for I32TimeSeriesObserverWrapper
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
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
. Read more
sourceimpl PyClassImpl for I32TimeSeriesObserverWrapper
impl PyClassImpl for I32TimeSeriesObserverWrapper
sourceconst IS_BASETYPE: bool
const IS_BASETYPE: bool
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool
const IS_SUBCLASS: bool
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool
const IS_MAPPING: bool
#[pyclass(mapping)]
type Layout = PyCell<Self>
type Layout = PyCell<Self>
Layout
type BaseType = PyAny
type BaseType = PyAny
Base class
type ThreadChecker = ThreadCheckerStub<I32TimeSeriesObserverWrapper>
type ThreadChecker = ThreadCheckerStub<I32TimeSeriesObserverWrapper>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl PyTypeInfo for I32TimeSeriesObserverWrapper
impl PyTypeInfo for I32TimeSeriesObserverWrapper
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if object
is an instance of this type or a subclass of this type.
fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if object
is an instance of this type.
Auto Trait Implementations
impl !RefUnwindSafe for I32TimeSeriesObserverWrapper
impl Send for I32TimeSeriesObserverWrapper
impl !Sync for I32TimeSeriesObserverWrapper
impl Unpin for I32TimeSeriesObserverWrapper
impl !UnwindSafe for I32TimeSeriesObserverWrapper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
pub fn type_object(py: Python<'_>) -> &PyType
pub fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.