Struct polars_core::chunked_array::object::ObjectArray [−][src]
pub struct ObjectArray<T> where
T: PolarsObject, { /* fields omitted */ }
object
only.Implementations
impl<T> ObjectArray<T> where
T: PolarsObject,
[src]
impl<T> ObjectArray<T> where
T: PolarsObject,
[src]pub unsafe fn value_unchecked(&self, index: usize) -> &T
[src]
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]
impl<T> Array for ObjectArray<T> where
T: PolarsObject,
[src]fn data_ref(&self) -> &ArrayData
[src]
fn data_ref(&self) -> &ArrayData
[src]Returns a reference-counted pointer to the underlying data of this array.
fn data_type(&self) -> &ArrowDataType
[src]
fn data_type(&self) -> &ArrowDataType
[src]fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
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 offset(&self) -> usize
[src]
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]
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]
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]
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]
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]
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]
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]
impl<T: Clone> Clone for ObjectArray<T> where
T: PolarsObject,
[src]fn clone(&self) -> ObjectArray<T>
[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]
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]
impl<T: Debug> Debug for ObjectArray<T> where
T: PolarsObject,
[src]impl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray<T>
[src]
impl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray<T>
[src]impl<T> JsonEqual for ObjectArray<T> where
T: PolarsObject,
[src]
impl<T> JsonEqual for ObjectArray<T> where
T: PolarsObject,
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for ObjectArray<T> where
T: RefUnwindSafe,
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,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[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>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self
to T
.
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T
to Self
.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,