Skip to main content

to_value

Function to_value 

Source
pub fn to_value<T>(value: T) -> Result<Value, Error>
where T: Serialize,
Expand description

Converts a serializable value into a generic YAML Value.

§Errors

Returns an error raised by the value’s Serialize implementation or when it requests a representation unsupported by yaml-rt-serde.