Struct polars::chunked_array::object::ObjectArray
source · [−]pub struct ObjectArray<T> where
T: PolarsObject, { /* private fields */ }
This is supported on crate feature
object
only.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) -> &DataType
fn data_type(&self) -> &DataType
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
sourceunsafe fn slice_unchecked(
&self,
offset: usize,
length: usize
) -> Box<dyn Array + 'static, Global>
unsafe fn slice_unchecked(
&self,
offset: usize,
length: usize
) -> Box<dyn Array + 'static, Global>
sourcefn null_count(&self) -> usize
fn null_count(&self) -> usize
sourceimpl<T> Clone for ObjectArray<T> where
T: Clone + PolarsObject,
impl<T> Clone for ObjectArray<T> where
T: Clone + 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 for ObjectArray<T> where
T: Debug + PolarsObject,
impl<T> Debug for ObjectArray<T> where
T: Debug + PolarsObject,
sourceimpl<'a, T> IntoIterator for &'a ObjectArray<T> where
T: PolarsObject,
impl<'a, T> IntoIterator for &'a ObjectArray<T> where
T: PolarsObject,
type IntoIter = ObjectIter<'a, T>
type IntoIter = ObjectIter<'a, T>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <&'a ObjectArray<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ObjectArray<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<T> ArrowArray for ObjectArray<T> where
T: PolarsObject,
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