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 moreAuto Trait Implementations§
impl<O> Freeze for ListScalar<O>
impl<O> !RefUnwindSafe for ListScalar<O>
impl<O> Send for ListScalar<O>
impl<O> Sync for ListScalar<O>
impl<O> Unpin for ListScalar<O>where
O: Unpin,
impl<O> !UnwindSafe for ListScalar<O>
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