pub struct View(/* private fields */);Implementations§
Source§impl View
impl View
pub fn column_paths(&self, py: Python<'_>) -> PyResult<Vec<String>>
pub fn to_columns_string( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<String>
pub fn to_json_string( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<String>
pub fn to_ndjson( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<String>
pub fn to_records<'a>( &self, py: Python<'a>, window: Option<Py<PyDict>>, ) -> PyResult<Bound<'a, PyAny>>
pub fn to_json<'a>( &self, py: Python<'a>, window: Option<Py<PyDict>>, ) -> PyResult<Bound<'a, PyAny>>
pub fn to_columns<'a>( &self, py: Python<'a>, window: Option<Py<PyDict>>, ) -> PyResult<Bound<'a, PyAny>>
pub fn to_csv( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<String>
Sourcepub fn to_dataframe(
&self,
py: Python<'_>,
window: Option<Py<PyDict>>,
) -> PyResult<Py<PyAny>>
pub fn to_dataframe( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<Py<PyAny>>
Serialize the data to a pandas.DataFrame.
Sourcepub fn to_pandas(
&self,
py: Python<'_>,
window: Option<Py<PyDict>>,
) -> PyResult<Py<PyAny>>
pub fn to_pandas( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<Py<PyAny>>
Serialize the data to a pandas.DataFrame.
Sourcepub fn to_polars(
&self,
py: Python<'_>,
window: Option<Py<PyDict>>,
) -> PyResult<Py<PyAny>>
pub fn to_polars( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<Py<PyAny>>
Serialize the data to a polars.DataFrame.
pub fn to_arrow( &self, py: Python<'_>, window: Option<Py<PyDict>>, ) -> PyResult<Py<PyBytes>>
pub fn delete(&self, py: Python<'_>) -> PyResult<()>
pub fn expand(&self, py: Python<'_>, index: u32) -> PyResult<u32>
pub fn collapse(&self, py: Python<'_>, index: u32) -> PyResult<u32>
pub fn dimensions(&self, py: Python<'_>) -> PyResult<Py<PyAny>>
pub fn expression_schema( &self, py: Python<'_>, ) -> PyResult<HashMap<String, String>>
pub fn get_config(&self, py: Python<'_>) -> PyResult<Py<PyAny>>
pub fn get_min_max( &self, py: Python<'_>, column_name: String, ) -> PyResult<(String, String)>
pub fn num_rows(&self, py: Python<'_>) -> PyResult<u32>
pub fn schema(&self, py: Python<'_>) -> PyResult<HashMap<String, String>>
pub fn on_delete(&self, py: Python<'_>, callback: Py<PyAny>) -> PyResult<u32>
pub fn remove_delete(&self, py: Python<'_>, callback_id: u32) -> PyResult<()>
pub fn on_update( &self, py: Python<'_>, callback: Py<PyAny>, mode: Option<String>, ) -> PyResult<u32>
pub fn remove_update(&self, py: Python<'_>, callback_id: u32) -> PyResult<()>
Trait Implementations§
Source§impl<'py> IntoPyObject<'py> for View
impl<'py> IntoPyObject<'py> for View
Source§type Output = Bound<'py, <View as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <View as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Performs the conversion.
Source§impl PyClassBaseType for View
impl PyClassBaseType for View
type LayoutAsBase = PyClassObject<View>
type BaseNativeType = <View as PyClassImpl>::BaseNativeType
type Initializer = PyClassInitializer<View>
type PyClassMutability = <View as PyClassImpl>::PyClassMutability
Source§impl PyClassImpl for View
impl PyClassImpl for View
Source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
#[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§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
#[pyclass(immutable_type)]
Source§type ThreadChecker = SendablePyClass<View>
type ThreadChecker = SendablePyClass<View>
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 PyClassNewTextSignature<View> for PyClassImplCollector<View>
impl PyClassNewTextSignature<View> for PyClassImplCollector<View>
fn new_text_signature(self) -> Option<&'static str>
Source§impl PyMethods<View> for PyClassImplCollector<View>
impl PyMethods<View> for PyClassImplCollector<View>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for View
impl PyTypeInfo for View
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for View
Auto Trait Implementations§
impl Freeze for View
impl !RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl !UnwindSafe for View
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.