Skip to main content

to_string

Function to_string 

Source
pub fn to_string<T: ?Sized + Serialize>(v: &T) -> Result<String, Error>
Expand description

Serialize T to a YAML string.

Source-compatible with serde_yaml::to_string.

§Errors

Returns an error if T’s Serialize impl fails or if YAML emission fails.