Struct polars_arrow::array::MutableNullArray
source · pub struct MutableNullArray { /* private fields */ }
Expand description
A distinct type to disambiguate clashing methods
Implementations§
source§impl MutableNullArray
impl MutableNullArray
sourcepub fn new(data_type: ArrowDataType, length: usize) -> Self
pub fn new(data_type: ArrowDataType, length: usize) -> Self
Returns a new MutableNullArray
.
§Panics
This function errors iff:
- The
data_type
’scrate::datatypes::PhysicalType
is not equal tocrate::datatypes::PhysicalType::Null
.
Trait Implementations§
source§impl Debug for MutableNullArray
impl Debug for MutableNullArray
source§impl From<MutableNullArray> for NullArray
impl From<MutableNullArray> for NullArray
source§fn from(value: MutableNullArray) -> Self
fn from(value: MutableNullArray) -> Self
Converts to this type from the input type.
source§impl MutableArray for MutableNullArray
impl MutableArray for MutableNullArray
source§fn data_type(&self) -> &ArrowDataType
fn data_type(&self) -> &ArrowDataType
The
ArrowDataType
of the array.source§fn validity(&self) -> Option<&MutableBitmap>
fn validity(&self) -> Option<&MutableBitmap>
The optional validity of the array.
source§fn as_mut_any(&mut self) -> &mut dyn Any
fn as_mut_any(&mut self) -> &mut dyn Any
Convert to mutable
Any
, to enable dynamic casting.source§fn shrink_to_fit(&mut self)
fn shrink_to_fit(&mut self)
Shrink the array to fit its length.
Auto Trait Implementations§
impl Freeze for MutableNullArray
impl RefUnwindSafe for MutableNullArray
impl Send for MutableNullArray
impl Sync for MutableNullArray
impl Unpin for MutableNullArray
impl UnwindSafe for MutableNullArray
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more