Crate yamlpatch

Source
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.