pub struct NullArray { /* private fields */ }
Expand description
The concrete Array
of DataType::Null
.
Implementations
sourceimpl NullArray
impl NullArray
sourcepub fn try_new(
data_type: DataType,
length: usize
) -> Result<NullArray, ArrowError>
pub fn try_new(
data_type: DataType,
length: usize
) -> Result<NullArray, ArrowError>
Returns a new NullArray
.
Errors
This function errors iff:
- The
data_type
’scrate::datatypes::PhysicalType
is not equal tocrate::datatypes::PhysicalType::Null
.
sourcepub fn new(data_type: DataType, length: usize) -> NullArray
pub fn new(data_type: DataType, length: usize) -> NullArray
Returns a new NullArray
.
Panics
This function errors iff:
- The
data_type
’scrate::datatypes::PhysicalType
is not equal tocrate::datatypes::PhysicalType::Null
.
Trait Implementations
sourceimpl Array for NullArray
impl Array for NullArray
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 From<GrowableNull> for NullArray
impl From<GrowableNull> for NullArray
sourcefn from(val: GrowableNull) -> NullArray
fn from(val: GrowableNull) -> NullArray
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NullArray
impl Send for NullArray
impl Sync for NullArray
impl Unpin for NullArray
impl UnwindSafe for NullArray
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<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