Add *_with_name methods

This commit is contained in:
sharkdp
2020-04-22 22:41:25 +02:00
committed by David Peter
parent 53a973e9dd
commit 261a7ea154
5 changed files with 37 additions and 13 deletions

View File

@ -27,7 +27,9 @@ fn main() {
PrettyPrinter::new()
.language("yaml")
.line_numbers(true)
.input_from_bytes(&bytes)
.grid(true)
.header(true)
.input_from_bytes_with_name(&bytes, "person.yaml")
.print()
.unwrap();
}