fn try_save_record<'b>(
        &mut self,
        storage: &'b mut dyn Storage,
        name: &String,
        name_record: &NameRecord,
    ) -> Result<()> {
        self.get_registry_mut(storage)
            .save(name.as_bytes(), &name_record)?;

        self.get_lineage_mut(storage)
            .save(name_record.hash().as_slice(), &name_record)?;

        Ok(())
    }
/// Save a name record in both the registry and lineage buckets
Save a name record in both the registry and lineage buckets
Save a name record in both the registry and lineage buckets
fn try_save_record<'b>(
        &mut self,
        storage: &'b mut dyn Storage,
        name: &String,
        name_record: &NameRecord,
    ) -> Result<()> {
        self.get_registry_mut(storage)
            .save(name.as_bytes(), &name_record)?;
        self.get_lineage_mut(storage)
            .save(name_record.hash().as_slice(), &name_record)?;
        Ok(())
    }
fn try_save_record < ' b > ( & mut self , storage : & ' b mut dyn Storage , name : & String , name_record : & NameRecord , ) -> Result < ( ) > { self . get_registry_mut ( storage ) . save ( name . as_bytes ( ) , & name_record ) ? ; self . get_lineage_mut ( storage ) . save ( name_record . hash ( ) . as_slice ( ) , & name_record ) ? ; Ok ( ( ) ) }
Save a name record in both the registry and lineage buckets
Save a name record in both the registry and lineage buckets
&mut self
storage
&'b mut dyn Storage
name
&String
name_record
&NameRecord
&mut self
storage
&'b mut dyn Storage
name
&String
name_record
&NameRecord