Struct polars_core::chunked_array::object::ObjectArray
source · pub struct ObjectArray<T>where
T: PolarsObject,{ /* private fields */ }
Available on crate feature
object
only.Implementations§
source§impl<T> ObjectArray<T>where
T: PolarsObject,
impl<T> ObjectArray<T>where
T: PolarsObject,
sourcepub unsafe fn value_unchecked(&self, index: usize) -> &T
pub unsafe fn value_unchecked(&self, index: usize) -> &T
Get a value at a certain index location
Safety
This does not any bound checks. The caller needs to ensure the index is within the size of the array.
sourcepub unsafe fn is_valid_unchecked(&self, i: usize) -> bool
pub unsafe fn is_valid_unchecked(&self, i: usize) -> bool
sourcepub unsafe fn is_null_unchecked(&self, i: usize) -> bool
pub unsafe fn is_null_unchecked(&self, i: usize) -> bool
Trait Implementations§
source§impl<T> Array for ObjectArray<T>where
T: PolarsObject,
impl<T> Array for ObjectArray<T>where
T: PolarsObject,
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Converts itself to a reference of
Any
, which enables downcasting to concrete types.source§fn data_type(&self) -> &ArrowDataType
fn data_type(&self) -> &ArrowDataType
The
DataType
of the Array
. In combination with Array::as_any
, this can be
used to downcast trait objects (dyn Array
) to concrete arrays.source§fn len(&self) -> usize
fn len(&self) -> usize
The length of the
Array
. Every array has a length corresponding to the number of
elements (slots).source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Converts itself to a mutable reference of
Any
, which enables mutable downcasting to concrete types.source§impl<T> Clone for ObjectArray<T>where
T: PolarsObject + Clone,
impl<T> Clone for ObjectArray<T>where
T: PolarsObject + Clone,
source§fn clone(&self) -> ObjectArray<T>
fn clone(&self) -> ObjectArray<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more