pub struct BufRecords<I, T> { /* private fields */ }
Available on crate feature std only.
Expand description

BufRecords inspects IntoRecords iterator and keeps read data buffered. So it can be checking before hand.

Implementations§

source§

impl BufRecords<(), ()>

source

pub fn new<I>( records: I, sniff: usize ) -> BufRecords<<I::IterRows as IntoIterator>::IntoIter, I::Cell>
where I: IntoRecords,

Creates new BufRecords structure, filling the buffer.

source§

impl<I, T> BufRecords<I, T>

source

pub fn as_slice(&self) -> &[Vec<T>]

Returns a slice of a keeping buffer.

Trait Implementations§

source§

impl<I: Debug, T: Debug> Debug for BufRecords<I, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<I> IntoRecords for BufRecords<I, <I::Item as IntoIterator>::Item>
where I: Iterator, I::Item: IntoIterator,

§

type Cell = <<I as Iterator>::Item as IntoIterator>::Item

A string representation of a Grid cell.
§

type IterColumns = BufIterator<<<I as Iterator>::Item as IntoIterator>::IntoIter, <BufRecords<I, <<I as Iterator>::Item as IntoIterator>::Item> as IntoRecords>::Cell>

Cell iterator inside a row.
§

type IterRows = BufRecordsIter<I, <BufRecords<I, <<I as Iterator>::Item as IntoIterator>::Item> as IntoRecords>::Cell>

Rows iterator.
source§

fn iter_rows(self) -> Self::IterRows

Returns an iterator over rows.

Auto Trait Implementations§

§

impl<I, T> RefUnwindSafe for BufRecords<I, T>

§

impl<I, T> Send for BufRecords<I, T>
where I: Send, T: Send,

§

impl<I, T> Sync for BufRecords<I, T>
where I: Sync, T: Sync,

§

impl<I, T> Unpin for BufRecords<I, T>
where I: Unpin, T: Unpin,

§

impl<I, T> UnwindSafe for BufRecords<I, T>
where I: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.