Struct csv::Encoded [] [src]

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]

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

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]

The error type for method results.

Emit a nil value. Read more

Emit a usize value.

Emit a u64 value.

Emit a u32 value.

Emit a u16 value.

Emit a u8 value.

Emit a isize value.

Emit a i64 value.

Emit a i32 value.

Emit a i16 value.

Emit a i8 value.

Emit a bool value. Read more

Emit a f64 value.

Emit a f32 value.

Emit a char value. Read more

Emit a string value.

Emit an enumeration value. Read more

Emit a enumeration variant value with no or unnamed data. Read more

Emit an unnamed data item for an enumeration variant. Read more

Emit a enumeration variant value with no or named data. Read more

Emit a named data item for an enumeration variant. Read more

Emit a struct value. Read more

Emit a field item for a struct. Read more

Emit a tuple value. Read more

Emit a data item for a tuple. Read more

Emit a tuple struct value. Read more

Emit a data item for a tuple struct. Read more

Emit an optional value. Read more

Emit the None optional value. Read more

Emit the Some(x) optional value. Read more

Emit a sequence of values. Read more

Emit an element in a sequence. Read more

Emit an associative container (map). Read more

Emit the key for an entry in a map. Read more

Emit the value for an entry in a map. Read more