pub struct MutableNullArray { /* private fields */ }
Expand description
A distinct type to disambiguate clashing methods
Implementations§
Source§impl MutableNullArray
impl MutableNullArray
Sourcepub fn new(dtype: ArrowDataType, length: usize) -> Self
pub fn new(dtype: ArrowDataType, length: usize) -> Self
Returns a new MutableNullArray
.
§Panics
This function errors iff:
- The
dtype
’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 dtype(&self) -> &ArrowDataType
fn dtype(&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