Trait polars_core::series::IntoSeries

source ·
pub unsafe trait IntoSeries {
    // Required method
    fn into_series(self) -> Series
       where Self: Sized;

    // Provided method
    fn is_series() -> bool { ... }
}
Expand description

Used to convert a ChunkedArray, &dyn SeriesTrait and Series into a Series.

§Safety

This trait is marked unsafe as the is_series return is used to transmute to Series. This must always return false except for Series structs.

Required Methods§

source

fn into_series(self) -> Series
where Self: Sized,

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IntoSeries for CategoricalChunked

Available on crate feature dtype-categorical only.
source§

impl IntoSeries for Arc<dyn SeriesTrait>

source§

impl IntoSeries for Series

source§

impl IntoSeries for DecimalChunked

Available on crate feature dtype-decimal only.
source§

impl IntoSeries for Int128Chunked

Available on crate feature dtype-decimal only.
source§

impl<T: PolarsDataType + 'static> IntoSeries for ChunkedArray<T>
where SeriesWrap<ChunkedArray<T>>: SeriesTrait,