Struct polars_core::chunked_array::object::ObjectArray[][src]

pub struct ObjectArray<T> where
    T: PolarsObject
{ /* fields omitted */ }
This is supported on crate feature object only.

Implementations

impl<T> ObjectArray<T> where
    T: PolarsObject
[src]

pub fn values(&self) -> &Arc<Vec<T>>[src]

Get a reference to the underlying data

pub fn value(&self, index: usize) -> &T[src]

Get a value at a certain index location

pub unsafe fn value_unchecked(&self, index: usize) -> &T[src]

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.

Trait Implementations

impl<T> Array for ObjectArray<T> where
    T: PolarsObject
[src]

fn as_any(&self) -> &dyn Any[src]

Returns the array as Any so that it can be downcasted to a specific implementation. Read more

fn data(&self) -> &ArrayData[src]

Returns a reference to the underlying data of this array.

fn data_ref(&self) -> &ArrayData[src]

Returns a reference-counted pointer to the underlying data of this array.

fn data_type(&self) -> &ArrowDataType[src]

Returns a reference to the DataType of this array. Read more

fn slice(&self, offset: usize, length: usize) -> ArrayRef[src]

Returns a zero-copy slice of this array with the indicated offset and length. Read more

fn len(&self) -> usize[src]

Returns the length (i.e., number of elements) of this array. Read more

fn is_empty(&self) -> bool[src]

Returns whether this array is empty. Read more

fn offset(&self) -> usize[src]

Returns the offset into the underlying data used by this array(-slice). Note that the underlying data can be shared by many arrays. This defaults to 0. Read more

fn is_null(&self, index: usize) -> bool[src]

Returns whether the element at index is null. When using this function on a slice, the index is relative to the slice. Read more

fn is_valid(&self, index: usize) -> bool[src]

Returns whether the element at index is not null. When using this function on a slice, the index is relative to the slice. Read more

fn null_count(&self) -> usize[src]

Returns the total number of null values in this array. Read more

fn get_buffer_memory_size(&self) -> usize[src]

Returns the total number of bytes of memory occupied by the buffers owned by this array.

fn get_array_memory_size(&self) -> usize[src]

Returns the total number of bytes of memory occupied physically by this array.

fn to_raw(
    &self
) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema), ArrowError>
[src]

returns two pointers that represent this array in the C Data Interface (FFI)

impl<T: Clone> Clone for ObjectArray<T> where
    T: PolarsObject
[src]

fn clone(&self) -> ObjectArray<T>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for ObjectArray<T> where
    T: PolarsObject
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray<T>[src]

type Item = Option<&'a T>

The type of the elements being iterated over.

type IntoIter = ObjectIter<'a, T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<T> JsonEqual for ObjectArray<T> where
    T: PolarsObject
[src]

fn equals_json(&self, _json: &[&Value]) -> bool[src]

Checks whether arrow array equals to json array.

fn equals_json_values(&self, json: &[Value]) -> bool[src]

Checks whether arrow array equals to json array.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

pub fn cast(self) -> U

Numeric cast from self to T.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> FromCast<T> for T

pub fn from_cast(t: T) -> T

Numeric cast from T to Self.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V