Function toml::encode_str [] [src]

pub fn encode_str<T: Encodable>(t: &T) -> String

Encodes an encodable value into a TOML string.

This function expects the type given to represent a TOML table in some form. If encoding encounters an error, then this function will fail the task.