pub struct PolarsSource { /* private fields */ }Available on crate features
data and polars only.Expand description
A paged DataSource over an in-memory Polars DataFrame.
§Example
use crisol_core::data::DataSource;
use crisol_core::data::polars::PolarsSource;
use polars_core::prelude::DataFrame;
let source = PolarsSource::new(DataFrame::empty()).expect("empty frame");
assert_eq!(source.row_count(), 0);Implementations§
Trait Implementations§
Source§impl Clone for PolarsSource
impl Clone for PolarsSource
Source§impl Conformance for PolarsSource
Available on crate feature conformance only.
impl Conformance for PolarsSource
Available on crate feature
conformance only.Source§impl DataSource for PolarsSource
impl DataSource for PolarsSource
Auto Trait Implementations§
impl !Freeze for PolarsSource
impl !RefUnwindSafe for PolarsSource
impl !UnwindSafe for PolarsSource
impl Forget for PolarsSource
impl Move for PolarsSource
impl Send for PolarsSourcewhere
RawVecInner: Send,
Arc<dyn SeriesTrait>: Send,
Arc<Backtrace>: Send,
Repr: Send,
BoxRaw<DataType>: Send,
&'static str: Send,
&'static [u8]: Send,
OnceLock<Series>: Send,
OnceLock<Arc<Schema<DataType, ()>>>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
impl Sync for PolarsSource
impl Unpin for PolarsSourcewhere
*const u8 is !null: Unpin,
Arc<dyn SeriesTrait>: Unpin,
Arc<Backtrace>: Unpin,
*const (): Unpin,
Box<DataType>: Unpin,
&'static str: Unpin,
&'static [u8]: Unpin,
Align4<u32>: Unpin,
Arc<Schema<DataType, ()>>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
impl UnsafeUnpin for PolarsSourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Column>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
*const ArcInner<Schema<DataType, ()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Schema<DataType, ()>>>: UnsafeUnpin,
PhantomData<Arc<Schema<DataType, ()>>>: UnsafeUnpin,
PhantomData<ColumnSchema>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more