saphyr-serde/saphyr/src
Ethiraric 842d536cb0 Implement LoadableYamlNode for MarkedYaml.
A few changes have had to be made to `LoadableYamlNode`:
  * The `From<Yaml>` requirement has been removed as it can be
    error-prone. It was not a direct conversion as it is unable to
    handle `Yaml::Hash` or `Yaml::Array` with a non-empty array/map.
  * Instead, `from_bare_yaml` was added, which does essentially the same
    as `From` but does not leak for users of the library.
  * `with_marker` has been added to populate the marker for the `Node`.
    The function is empty for `Yaml`.

`load_from_*` methods have been added to `MarkedYaml` for convenience.
They load YAML using the markers.

The markers returned from `saphyr-parser` are not all correct, meaning
that tests are kind of useless for now as they will fail due to bugs
outside of the scope of this library.
2024-07-03 00:55:41 +02:00
..
annotated Implement LoadableYamlNode for MarkedYaml. 2024-07-03 00:55:41 +02:00
annotated.rs Implement LoadableYamlNode for MarkedYaml. 2024-07-03 00:55:41 +02:00
char_traits.rs yaml-rust2 -> saphyr 2024-04-02 18:49:52 +02:00
emitter.rs Prepare the ground for annotated parsing. 2024-07-03 00:55:41 +02:00
encoding.rs Prepare the ground for annotated parsing. 2024-07-03 00:55:41 +02:00
lib.rs Implement LoadableYamlNode for MarkedYaml. 2024-07-03 00:55:41 +02:00
loader.rs Implement LoadableYamlNode for MarkedYaml. 2024-07-03 00:55:41 +02:00
macros.rs Add base support for annotated YAML objects. 2024-07-03 00:55:41 +02:00
yaml.rs Implement LoadableYamlNode for MarkedYaml. 2024-07-03 00:55:41 +02:00