pub struct Dataset<'a, R: Read> {
pub columns: Vec<Column>,
/* private fields */
}Fields§
§columns: Vec<Column>Implementations§
Source§impl<'a, R: Read> Dataset<'a, R>
impl<'a, R: Read> Dataset<'a, R>
pub fn from_cursor( cursor: CursorImpl<StatementImpl<'a>>, ) -> MyResult<Option<Self>>
pub fn from_file(reader: R, auto: bool) -> MyResult<Option<Self>>
pub fn from_keywords(column: &str, records: Vec<&str>) -> Self
pub fn from_tables( column1: Option<&str>, column2: Option<&str>, column3: &str, records: Vec<(&str, &str, &str)>, ) -> Self
pub fn from_columns( column1: Option<&str>, column2: Option<&str>, records: Vec<(&str, &str, &str, &str, Option<&Payload>)>, ) -> Self
pub fn get_columns(&self, painter: Painter) -> Vec<String>
pub fn has_records(&self) -> bool
pub fn get_records<F>(&self, limit: usize, function: F) -> MyResult<()>
pub fn get_measured<F>(&self, limit: usize, function: F) -> MyResult<()>
pub fn store_records(&mut self) -> MyResult<()>
pub fn push_record(&mut self, record: Vec<Cow<'_, str>>)
pub fn get_widths(&self) -> Vec<Format>
pub fn measure_table(&self) -> usize
pub fn adjust_header(&self, header: TableHeader, interact: bool) -> TableHeader
pub fn into_table( self, header: TableHeader, group: Option<&str>, ) -> TableLayout<'a, R>
pub fn into_flatten(self, verbose: FlattenVerbose) -> FlattenLayout<'a, R>
Auto Trait Implementations§
impl<'a, R> !Freeze for Dataset<'a, R>
impl<'a, R> !RefUnwindSafe for Dataset<'a, R>
impl<'a, R> Send for Dataset<'a, R>where
R: Send,
impl<'a, R> !Sync for Dataset<'a, R>
impl<'a, R> Unpin for Dataset<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for Dataset<'a, R>where
R: UnsafeUnpin,
impl<'a, R> UnwindSafe for Dataset<'a, R>where
R: UnwindSafe,
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
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