Struct yaml_subset::HashElement
source · pub struct HashElement {
pub key: String,
pub value: AliasedYaml,
}Fields§
§key: String§value: AliasedYamlTrait Implementations§
source§impl Clone for HashElement
impl Clone for HashElement
source§fn clone(&self) -> HashElement
fn clone(&self) -> HashElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HashElement
impl Debug for HashElement
source§impl PartialEq<HashElement> for HashElement
impl PartialEq<HashElement> for HashElement
source§fn eq(&self, other: &HashElement) -> bool
fn eq(&self, other: &HashElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl YamlInsert for HashElement
impl YamlInsert for HashElement
fn edit_hash_structure<F>(&mut self, path: &YamlPath, f: &F) -> usizewhere
F: Fn(&mut Vec<HashData>, String, Option<usize>) -> usize,
fn for_hash<F, R>(&mut self, path: &YamlPath, f: &F, r: &R) -> usizewhere
F: Fn(&mut HashElement) -> usize,
R: Fn(&mut Yaml) -> 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