Function toml::encode [] [src]

pub fn encode<T: Encodable>(t: &T) -> Value

Encodes an encodable value into a TOML value.

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.