Skip to main content

Module edit

Module edit 

Source

Structs§

EditResult
Result of an atomic symbol body replacement.
TextEditResult
Result of an atomic text edit.

Enums§

EditError
MatchTier
How edit_file found old_text in the file.
Occurrence
Which match edit_file replaces when old_text occurs more than once.

Functions§

edit_file
Atomically replaces old_text with new_text in one file.
hash_content
Computes SHA256 of a string content.
replace_symbol_body
Atomically replaces the implementation body of a symbol by name.