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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapYaml for HashElement
impl MapYaml for HashElement
Source§impl PartialEq for HashElement
impl PartialEq for HashElement
Source§impl Pretty for HashElement
impl Pretty for HashElement
impl StructuralPartialEq for HashElement
Source§impl VisitYaml for HashElement
impl VisitYaml for HashElement
fn visit_yaml<F: FnMut(&AliasedYaml)>(&self, f: &mut F)
Source§impl YamlInsert for HashElement
impl YamlInsert for HashElement
fn edit_hash_structure<F>(&mut self, path: &YamlPath, f: &F) -> usize
fn for_hash<F, R, A: Additive>(&mut self, path: &YamlPath, f: &F, r: &R) -> A
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
fn insert_into_hash_by_call<F>(
&mut self,
path: &YamlPath,
h: F,
overwrite: bool,
) -> usizewhere
F: Fn() -> AliasedYaml,
fn remove_from_hash(&mut self, path: &YamlPath) -> usize
fn rename_field(&mut self, path: &YamlPath, new_name: String) -> usize
fn to_object(&mut self, path: &YamlPath, object_key: String) -> usize
fn move_to_subfield( &mut self, path: &YamlPath, subfield: String, fields_to_move: Vec<String>, ) -> usize
fn move_to_map_with_field_as_key( &mut self, path: &YamlPath, old_map_name: String, selector: String, new_map_name: String, keeps: Vec<String>, ) -> usize
Auto Trait Implementations§
impl Freeze for HashElement
impl RefUnwindSafe for HashElement
impl Send for HashElement
impl Sync for HashElement
impl Unpin for HashElement
impl UnsafeUnpin for HashElement
impl UnwindSafe for HashElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more