# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/x7bimyq
Rust 挑戰 - 動手實現 HashMap 2
Rust 挑戰 - 動手實現 HashMap 1讓我們從上一篇文章結束的地方繼續。我們要實現 getmut() 方法,這應該與 get() 方法一樣,但編譯器不會讓我們簡單地將不可變變量更新爲可變變量。解決方案是通過迭代器循環遍歷 entry,而不是老式的索引計數。由於我們需要從給定的索引開始,循環遍歷整個數組,以 index-1 結束,這本身有點棘手,但可以使用 Iterator::splita ⌘ Read more