Struct arrow2::scalar::ListScalar
source · pub struct ListScalar<O: Offset> { /* private fields */ }
Expand description
Implementations§
source§impl<O: Offset> ListScalar<O>
impl<O: Offset> ListScalar<O>
sourcepub fn new(data_type: DataType, values: Option<Box<dyn Array>>) -> Self
pub fn new(data_type: DataType, values: Option<Box<dyn Array>>) -> Self
returns a new ListScalar
Panics
iff
- the
data_type
is notList
orLargeList
(depending on this scalar’s offsetO
) - the child of the
data_type
is not equal to thevalues
sourcepub fn values(&self) -> &Box<dyn Array>
pub fn values(&self) -> &Box<dyn Array>
The values of the ListScalar
Trait Implementations§
source§impl<O: Clone + Offset> Clone for ListScalar<O>
impl<O: Clone + Offset> Clone for ListScalar<O>
source§fn clone(&self) -> ListScalar<O>
fn clone(&self) -> ListScalar<O>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more