Struct polars_core::datatypes::StructChunked
source · [−]pub struct StructChunked { /* private fields */ }
Expand description
This is logical type StructChunked
that
dispatches most logic to the fields
implementations
Different from StructArray
, this
type does not have its own validity
. That means some operations
will be a bit less efficient because we need to check validity of all
fields. However this does save a lot of code and compile times.
Implementations
sourceimpl StructChunked
impl StructChunked
pub fn new(name: &str, fields: &[Series]) -> Result<Self>
sourcepub fn field_by_name(&self, name: &str) -> Result<Series>
pub fn field_by_name(&self, name: &str) -> Result<Series>
Get access to one of this [StructChunked]
’s fields
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn name(&self) -> &String
pub fn fields(&self) -> &[Series]
pub fn fields_mut(&mut self) -> &mut Vec<Series>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn rename(&mut self, name: &str)
Trait Implementations
sourceimpl Clone for StructChunked
impl Clone for StructChunked
sourcefn clone(&self) -> StructChunked
fn clone(&self) -> StructChunked
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<StructChunked> for DataFrame
impl From<StructChunked> for DataFrame
sourcefn from(ca: StructChunked) -> Self
fn from(ca: StructChunked) -> Self
Performs the conversion.
sourceimpl IntoSeries for StructChunked
impl IntoSeries for StructChunked
sourceimpl LogicalType for StructChunked
impl LogicalType for StructChunked
Auto Trait Implementations
impl !RefUnwindSafe for StructChunked
impl Send for StructChunked
impl Sync for StructChunked
impl Unpin for StructChunked
impl !UnwindSafe for StructChunked
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
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more