dtolnay / serde-yaml

Strongly typed YAML library for Rust
Apache License 2.0
965 stars 164 forks source link

Add string output function for Tag struct #306

Closed masinc closed 2 years ago

masinc commented 2 years ago

I would like to suggest an implementation of a string conversion method such as Display Trait for the serde_yaml::value::tagged::Tag struct.

One of the issues I think about is whether the leading "!" should be added. at the beginning, but I think it is always OK to do so.

dtolnay commented 2 years ago

I would accept a PR for a Display impl which includes the leading "!".