#[repr(transparent)]pub struct PyTable(pub SuperTable);Expand description
Transparent wrapper around MinArrow’s SuperTable.
Enables conversion to/from PyArrow Table. A PyArrow Table is a collection of RecordBatches (chunked columns), equivalent to MinArrow’s SuperTable.
§Example (Rust)
ⓘ
use minarrow_pyo3::PyTable;
use minarrow::SuperTable;
#[pyfunction]
fn process_table(table: PyTable) -> PyResult<PyTable> {
let super_table: SuperTable = table.into();
// Process...
Ok(PyTable::from(super_table))
}Tuple Fields§
§0: SuperTableImplementations§
Source§impl PyTable
impl PyTable
Sourcepub fn new(table: SuperTable) -> Self
pub fn new(table: SuperTable) -> Self
Creates a new PyTable from a SuperTable.
Sourcepub fn inner(&self) -> &SuperTable
pub fn inner(&self) -> &SuperTable
Returns a reference to the inner MinArrow SuperTable.
Sourcepub fn into_inner(self) -> SuperTable
pub fn into_inner(self) -> SuperTable
Consumes self and returns the inner SuperTable.
Trait Implementations§
Source§impl AsRef<SuperTable> for PyTable
impl AsRef<SuperTable> for PyTable
Source§fn as_ref(&self) -> &SuperTable
fn as_ref(&self) -> &SuperTable
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<PyTable> for SuperTable
impl From<PyTable> for SuperTable
Source§impl From<SuperTable> for PyTable
impl From<SuperTable> for PyTable
Source§fn from(table: SuperTable) -> Self
fn from(table: SuperTable) -> Self
Converts to this type from the input type.
Source§impl<'py> FromPyObject<'py> for PyTable
impl<'py> FromPyObject<'py> for PyTable
Auto Trait Implementations§
impl Freeze for PyTable
impl RefUnwindSafe for PyTable
impl Send for PyTable
impl Sync for PyTable
impl Unpin for PyTable
impl UnsafeUnpin for PyTable
impl UnwindSafe for PyTable
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§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.