Struct polars_core::chunked_array::object::ObjectArray
source · [−]pub struct ObjectArray<T> where
T: PolarsObject, { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<T> Array for ObjectArray<T> where
T: PolarsObject,
impl<T> Array for ObjectArray<T> where
T: PolarsObject,
sourcefn 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. Read more
sourcefn null_count(&self) -> usize
fn null_count(&self) -> usize
sourceimpl<T: Clone> Clone for ObjectArray<T> where
T: PolarsObject,
impl<T: Clone> Clone for ObjectArray<T> where
T: PolarsObject,
sourcefn clone(&self) -> ObjectArray<T>
fn clone(&self) -> ObjectArray<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for ObjectArray<T> where
T: PolarsObject,
impl<T: Debug> Debug for ObjectArray<T> where
T: PolarsObject,
sourceimpl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray<T>
impl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray<T>
impl<T: PolarsObject> ArrowArray for ObjectArray<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ObjectArray<T> where
T: RefUnwindSafe,
impl<T> Send for ObjectArray<T>
impl<T> Sync for ObjectArray<T>
impl<T> Unpin for ObjectArray<T>
impl<T> UnwindSafe for ObjectArray<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<A> IsValid for A where
A: ArrowArray,
impl<A> IsValid for A where
A: ArrowArray,
sourceunsafe fn is_valid_unchecked(&self, i: usize) -> bool
unsafe fn is_valid_unchecked(&self, i: usize) -> bool
Safety Read more
sourceunsafe fn is_null_unchecked(&self, i: usize) -> bool
unsafe fn is_null_unchecked(&self, i: usize) -> bool
Safety Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<A> PolarsArray for A where
A: Array + ?Sized,
impl<A> PolarsArray for A where
A: Array + ?Sized,
fn has_validity(&self) -> bool
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more