Function to_value
Source pub fn to_value<T>(value: T) -> Result<Value, Error>
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.