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<Self, Error>
pub fn try_new(data_type: DataType, length: usize) -> Result<Self, Error>
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) -> Self
pub fn new(data_type: DataType, length: usize) -> Self
Returns a new NullArray
.
Panics
This function errors iff:
- The
data_type
’scrate::datatypes::PhysicalType
is not equal tocrate::datatypes::PhysicalType::Null
.
sourcepub fn boxed(self) -> Box<dyn Array>
pub fn boxed(self) -> Box<dyn Array>
Boxes self into a Box<dyn Array>
.
sourcepub fn arced(self) -> Arc<dyn Array>
pub fn arced(self) -> Arc<dyn Array>
Boxes self into a std::sync::Arc<dyn Array>
.
Trait Implementations
sourceimpl Array for NullArray
impl Array for NullArray
sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Converts itself to a reference of Any
, which enables downcasting to concrete types.
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Converts itself to a mutable reference of Any
, which enables mutable downcasting to concrete types.
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
sourcefn null_count(&self) -> usize
fn null_count(&self) -> usize
sourceimpl From<GrowableNull> for NullArray
impl From<GrowableNull> for NullArray
sourcefn from(val: GrowableNull) -> Self
fn from(val: GrowableNull) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<&(dyn Array + 'static)> for NullArray
impl PartialEq<&(dyn Array + 'static)> for NullArray
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