Struct csvsc::Target[][src]

pub struct Target {}

Helper for building a target for flushing data into.

Implementations

impl Target[src]

pub fn from_column(name: &str) -> ColumnTarget[src]

Write output to a file whose path is specified by the given column.

This gives the oportunity to create a stream that writes to multiple files depending on some criteria. It doesn’t write the value of the specified column by default, it is just used to decide the path to the file(s) for writing but that behaviour is configurable.

pub fn path(path: &str) -> impl TargetManager[src]

Write output to the specified path in the filesystem.

pub fn stdout() -> impl TargetManager[src]

Write output to stdout

pub fn stderr() -> impl TargetManager[src]

Write output to stderr

Auto Trait Implementations

impl RefUnwindSafe for Target

impl Send for Target

impl Sync for Target

impl Unpin for Target

impl UnwindSafe for Target

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.