pub struct DataTransformer {}
Implementations§
source§impl DataTransformer
impl DataTransformer
pub fn get_schema_map(py: Python<'_>, cls: &PyType) -> PyResult<Py<PyDict>>
sourcepub fn pyobjects_to_record_batch_bytes(
py: Python<'_>,
data: Vec<PyObject>,
) -> PyResult<Py<PyBytes>>
pub fn pyobjects_to_record_batch_bytes( py: Python<'_>, data: Vec<PyObject>, ) -> PyResult<Py<PyBytes>>
Return Python bytes
from the given list of ‘legacy’ data objects, which can be passed
to pa.ipc.open_stream
to create a RecordBatchReader
.
pub fn pyo3_order_book_deltas_to_record_batch_bytes( py: Python<'_>, data: Vec<OrderBookDelta>, ) -> PyResult<Py<PyBytes>>
pub fn pyo3_order_book_depth10_to_record_batch_bytes( py: Python<'_>, data: Vec<OrderBookDepth10>, ) -> PyResult<Py<PyBytes>>
pub fn pyo3_quote_ticks_to_record_batch_bytes( py: Python<'_>, data: Vec<QuoteTick>, ) -> PyResult<Py<PyBytes>>
pub fn pyo3_trade_ticks_to_record_batch_bytes( py: Python<'_>, data: Vec<TradeTick>, ) -> PyResult<Py<PyBytes>>
pub fn pyo3_bars_to_record_batch_bytes( py: Python<'_>, data: Vec<Bar>, ) -> PyResult<Py<PyBytes>>
Trait Implementations§
source§impl HasPyGilRef for DataTransformer
impl HasPyGilRef for DataTransformer
source§type AsRefTarget = PyCell<DataTransformer>
type AsRefTarget = PyCell<DataTransformer>
Utility type to make Py::as_ref work.
source§impl IntoPy<Py<PyAny>> for DataTransformer
impl IntoPy<Py<PyAny>> for DataTransformer
source§impl PyClass for DataTransformer
impl PyClass for DataTransformer
source§impl PyClassImpl for DataTransformer
impl PyClassImpl for DataTransformer
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
source§type ThreadChecker = SendablePyClass<DataTransformer>
type ThreadChecker = SendablePyClass<DataTransformer>
This handles following two situations: Read more
source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
source§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>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a DataTransformer
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a DataTransformer
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut DataTransformer
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut DataTransformer
source§impl PyMethods<DataTransformer> for PyClassImplCollector<DataTransformer>
impl PyMethods<DataTransformer> for PyClassImplCollector<DataTransformer>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for DataTransformer
impl PyTypeInfo for DataTransformer
source§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(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
👎Deprecated since 0.21.0:
PyTypeInfo::type_object
will be replaced by PyTypeInfo::type_object_bound
in a future PyO3 versionReturns the safe abstraction over the type object.
§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(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_type_of
will be replaced by PyTypeInfo::is_type_of_bound
in a future PyO3 versionChecks if
object
is an instance of this type or a subclass of this type.§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(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_exact_type_of
will be replaced by PyTypeInfo::is_exact_type_of_bound
in a future PyO3 versionChecks if
object
is an instance 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 DerefToPyAny for DataTransformer
Auto Trait Implementations§
impl Freeze for DataTransformer
impl RefUnwindSafe for DataTransformer
impl Send for DataTransformer
impl Sync for DataTransformer
impl Unpin for DataTransformer
impl UnwindSafe for DataTransformer
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more