Struct csvsc::input::InputStream [−][src]
A structure for creating a transformation chain from input files.
Most of the time you’ll start your processing chain using .from_readers()
or .from_paths()
and then chain the methods of the
RowStream
trait. However there are more options
for the cases where you need to customize how your input is read.
Trait Implementations
impl IntoIterator for InputStream
[src]
type Item = RowResult
The type of the elements being iterated over.
type IntoIter = IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl RowStream for InputStream
[src]
fn headers(&self) -> &Headers
[src]
fn add(self, column: ColSpec) -> Result<Add<Self>> where
Self: Sized,
[src]
Self: Sized,
fn del(self, columns: Vec<&str>) -> Del<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn select(self, columns: Vec<&str>) -> Select<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn add_with<F>(
self,
colname: &str,
f: F
) -> Result<AddWith<Self, F>, BuildError> where
Self: Sized,
F: FnMut(&Headers, &Row) -> Result<String>,
[src]
self,
colname: &str,
f: F
) -> Result<AddWith<Self, F>, BuildError> where
Self: Sized,
F: FnMut(&Headers, &Row) -> Result<String>,
fn reduce(self, columns: Vec<Box<dyn Aggregate>>) -> Result<Reduce<Self>> where
Self: Sized,
[src]
Self: Sized,
fn adjacent_group<F, R, G>(self, grouping: G, f: F) -> AdjacentGroup<Self, F, G> where
F: Fn(MockStream<IntoIter<RowResult>>) -> R,
R: RowStream,
G: GroupCriteria,
Self: Sized,
[src]
F: Fn(MockStream<IntoIter<RowResult>>) -> R,
R: RowStream,
G: GroupCriteria,
Self: Sized,
fn group<F, R, G>(self, grouping: G, f: F) -> Group<Self, F, G> where
F: Fn(MockStream<IntoIter<RowResult>>) -> R,
R: RowStream,
G: GroupCriteria,
Self: Sized,
[src]
F: Fn(MockStream<IntoIter<RowResult>>) -> R,
R: RowStream,
G: GroupCriteria,
Self: Sized,
fn flush<T>(self, target: T) -> Result<Flush<Self, T>> where
Self: Sized,
[src]
Self: Sized,
fn review<F>(self, f: F) -> Inspect<Self, F> where
Self: Sized,
F: FnMut(&Headers, &RowResult),
[src]
Self: Sized,
F: FnMut(&Headers, &RowResult),
fn rename(self, old_name: &str, new_name: &str) -> Rename<Self> where
Self: Sized,
[src]
Self: Sized,
fn map_row<F, H, R>(self, f: F, header_map: H) -> MapRow<Self, F> where
Self: Sized,
F: Fn(&Headers, &Row) -> Result<R>,
H: Fn(&Headers) -> Headers,
R: Iterator<Item = RowResult>,
[src]
Self: Sized,
F: Fn(&Headers, &Row) -> Result<R>,
H: Fn(&Headers) -> Headers,
R: Iterator<Item = RowResult>,
fn map_col<F>(self, col: &str, f: F) -> MapCol<Self, F> where
Self: Sized,
F: Fn(&str) -> Result<String>,
[src]
Self: Sized,
F: Fn(&str) -> Result<String>,
fn filter_col<F>(self, col: &str, f: F) -> Result<FilterCol<Self, F>> where
Self: Sized,
F: Fn(&str) -> bool,
[src]
Self: Sized,
F: Fn(&str) -> bool,
fn filter_row<F>(self, f: F) -> FilterRow<Self, F> where
Self: Sized,
F: Fn(&Headers, &Row) -> bool,
[src]
Self: Sized,
F: Fn(&Headers, &Row) -> bool,
Auto Trait Implementations
impl !RefUnwindSafe for InputStream
impl Send for InputStream
impl Sync for InputStream
impl Unpin for InputStream
impl !UnwindSafe for InputStream
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,