Same as [`write`], but for a string ref.
(db: &ShareableDatabase, key: &str, value: &str)
| 69 | |
| 70 | /// Same as [`write`], but for a string ref. |
| 71 | pub fn write_str(db: &ShareableDatabase, key: &str, value: &str) -> anyhow::Result<()> { |
| 72 | write(db, key, value.as_bytes()) |
| 73 | } |
| 74 | |
| 75 | /// Same as [`write`], but for a u64. |
| 76 | pub fn write_u64(db: &ShareableDatabase, key: &str, value: u64) -> anyhow::Result<()> { |