Expand description
Comment and format-preserving YAML patch operations.
Structs§
- Patch
- Represents a single YAML patch.
Enums§
- Error
- Error types for YAML patch operations
- Op
- Represents a YAML patch operation.
- Style
- Represents different YAML styles for a feature.
Functions§
- apply_
yaml_ patches - Apply a sequence of YAML patch operations to a YAML document. Returns a new YAML document with the patches applied.
- extract_
leading_ indentation_ for_ block_ item - Extract the number of leading spaces need to align a block item with its surrounding context.
- extract_
leading_ whitespace - Extract leading whitespace from the beginning of the line containing the given feature.
- find_
content_ end - Find the end of actual step content, excluding trailing comments
- route_
to_ feature_ exact - route_
to_ feature_ pretty - serialize_
flow - Serialize a
serde_yaml::Value
to a YAML string in flow layout.