[][src]Struct csv::Encoded

pub struct Encoded { /* fields omitted */ }

A record to be encoded.

This is a "wrapper" type that allows the Encoder machinery from the serialize crate to encode a single CSV record from your custom types.

Generally, you should not need to use this type directly. Instead, you should prefer the encode or encode_all methods defined on CsvWriter.

Methods

impl Encoded[src]

pub fn new() -> Encoded[src]

Creates a new encodable record. The value returned can be passed to Encodable::encode.

pub fn unwrap(self) -> Vec<ByteString>[src]

Once a record has been encoded into this value, unwrap can be used to access the raw CSV record.

Trait Implementations

impl Encoder for Encoded[src]

type Error = Error

The error type for method results.

Auto Trait Implementations

impl Send for Encoded

impl Sync for Encoded

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<S> EncoderHelpers for S where
    S: Encoder
[src]