Enum yaml_subset::Yaml
source · pub enum Yaml {
EmptyInlineHash,
Hash(Vec<HashData>),
InlineArray(Vec<Yaml>),
Array(Vec<ArrayData>),
QuotedString(String),
UnquotedString(String),
FoldedString(Vec<String>),
LiteralString(Vec<String>),
Anchor(String),
}Variants§
EmptyInlineHash
Hash(Vec<HashData>)
InlineArray(Vec<Yaml>)
Array(Vec<ArrayData>)
QuotedString(String)
UnquotedString(String)
FoldedString(Vec<String>)
LiteralString(Vec<String>)
Anchor(String)
Trait Implementations§
source§impl PartialEq<Yaml> for Yaml
impl PartialEq<Yaml> for Yaml
source§impl YamlInsert for Yaml
impl YamlInsert for Yaml
fn for_hash<F, R>(&mut self, path: &YamlPath, f: &F, r: &R) -> usizewhere
F: Fn(&mut HashElement) -> usize,
R: Fn(&mut Yaml) -> usize,
fn edit_hash_structure<F>(&mut self, path: &YamlPath, f: &F) -> usizewhere
F: Fn(&mut Vec<HashData>, String, Option<usize>) -> usize,
source§fn insert_into_hash(
&mut self,
path: &YamlPath,
h: &AliasedYaml,
overwrite: bool
) -> usize
fn insert_into_hash(
&mut self,
path: &YamlPath,
h: &AliasedYaml,
overwrite: bool
) -> usize
Insert AliasedYaml into a hash
Returns the amount of insertions.
Can be more than 1 when using indexes or all array elements etc