temporary fork of saphyr with serde support merged into main.
1fb76ae745
This implements the IndexMut trait for Yaml. This allows indexing the Yaml type while having a mutable reference. Unlike the Index, this will panic on a failure. That is allowed as per the Rust documentation [1]. We don't have the option of returning a mutable reference to BAD_VALUE as that is unsafe. So instead we just panic. 1: https://doc.rust-lang.org/std/ops/trait.IndexMut.html#tymethod.index_mut Resolves: https://github.com/chyh1990/yaml-rust/issues/123 Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Co-authored-by: Ethiraric <ethiraric@gmail.com> |
||
---|---|---|
parser |