pub trait FrameStruct<'a, R>
where R: TableRow + Sized, Self: Sized,
{ // Required methods fn new(df: &'a DataFrame) -> PolarsResult<Self>; fn read_row(&mut self, idx: usize) -> Result<R, RowError>; }
Expand description

Interface for data frame structs for deserialization.

Frame structs store references to the data frame’s columns so we only need to extract them from the frame once.

Required Methods§

source

fn new(df: &'a DataFrame) -> PolarsResult<Self>

source

fn read_row(&mut self, idx: usize) -> Result<R, RowError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> FrameStruct<'a, RatingRow> for RatingRowFrame<'a>

source§

impl<'a> FrameStruct<'a, ReviewRow> for ReviewRowFrame<'a>

source§

impl<'a> FrameStruct<'a, GenderRow> for GenderRowFrame<'a>

source§

impl<'a> FrameStruct<'a, NameRow> for NameRowFrame<'a>

source§

impl<'a> FrameStruct<'a, ClusterAuthor> for ClusterAuthorFrame<'a>

source§

impl<'a> FrameStruct<'a, ClusterGenderInfo> for ClusterGenderInfoFrame<'a>

source§

impl<'a> FrameStruct<'a, ClusterHash> for ClusterHashFrame<'a>

source§

impl<'a> FrameStruct<'a, ClusterCode> for ClusterCodeFrame<'a>

source§

impl<'a> FrameStruct<'a, ClusterStat> for ClusterStatFrame<'a>

source§

impl<'a> FrameStruct<'a, GraphEdge> for GraphEdgeFrame<'a>

source§

impl<'a> FrameStruct<'a, ISBNClusterRec> for ISBNClusterRecFrame<'a>

source§

impl<'a> FrameStruct<'a, IndexEntry> for IndexEntryFrame<'a>

source§

impl<'a> FrameStruct<'a, AuthorRecord> for AuthorRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookAuthorRecord> for BookAuthorRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookIdRecord> for BookIdRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookRecord> for BookRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookSeriesRecord> for BookSeriesRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookGenreRecord> for BookGenreRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, BookLinkRecord> for BookLinkRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, IntRecord> for IntRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, ReviewRecord> for ReviewRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, WorkRecord> for WorkRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, TimelessActionRecord> for TimelessActionRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, TimestampActionRecord> for TimestampActionRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, TimelessRatingRecord> for TimelessRatingRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, TimestampRatingRecord> for TimestampRatingRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, AuthRec> for AuthRecFrame<'a>

source§

impl<'a> FrameStruct<'a, BookIds> for BookIdsFrame<'a>

source§

impl<'a> FrameStruct<'a, ISBNrec> for bookdata::marc::book_fields::ISBNrecFrame<'a>

source§

impl<'a> FrameStruct<'a, FieldRecord> for FieldRecordFrame<'a>

source§

impl<'a> FrameStruct<'a, AuthorNameRec> for AuthorNameRecFrame<'a>

source§

impl<'a> FrameStruct<'a, AuthorRec> for AuthorRecFrame<'a>

source§

impl<'a> FrameStruct<'a, EditionAuthorRec> for EditionAuthorRecFrame<'a>

source§

impl<'a> FrameStruct<'a, EditionRec> for EditionRecFrame<'a>

source§

impl<'a> FrameStruct<'a, EditionSubjectRec> for EditionSubjectRecFrame<'a>

source§

impl<'a> FrameStruct<'a, ISBNrec> for bookdata::openlib::edition::ISBNrecFrame<'a>

source§

impl<'a> FrameStruct<'a, LinkRec> for LinkRecFrame<'a>

source§

impl<'a> FrameStruct<'a, WorkAuthorRec> for WorkAuthorRecFrame<'a>

source§

impl<'a> FrameStruct<'a, WorkRec> for WorkRecFrame<'a>

source§

impl<'a> FrameStruct<'a, WorkSubjectRec> for WorkSubjectRecFrame<'a>