MCPcopy Create free account
hub / github.com/ForensicRS/forensic-rs / insert

Method insert

src/data.rs:71–73  ·  view source on GitHub ↗
(&mut self, field_name: Text, field_value: Field)

Source from the content-addressed store, hash-verified

69 self.insert(Text::Borrowed(field_name), field_value);
70 }
71 pub fn insert(&mut self, field_name: Text, field_value: Field) {
72 self.fields.insert(field_name, field_value.into());
73 }
74 /// Obtains the casted value of the field into i64 and caches it
75 pub fn i64_field(&'a mut self, field_name: &str) -> Option<i64> {
76 let field = self.fields.get_mut(field_name)?;

Callers 13

defaultMethod · 0.80
newMethod · 0.80
add_fieldMethod · 0.80
visit_mapMethod · 0.80
iterate_fields_testFunction · 0.80
should_serialize_dataFunction · 0.80
add_valueMethod · 0.80
open_keyMethod · 0.80
basic_cacheFunction · 0.80
basic_registryFunction · 0.80
get_env_vars_of_usersFunction · 0.80

Calls 1

intoMethod · 0.45

Tested by 7

iterate_fields_testFunction · 0.64
should_serialize_dataFunction · 0.64
add_valueMethod · 0.64
open_keyMethod · 0.64
basic_cacheFunction · 0.64
basic_registryFunction · 0.64