# 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/q6gsdoa
Rust 設計模式:使用 Trait 關聯函數和單元結構體實現算法多態**
最近在用 Rust 編寫在一個 NLP 的模塊,需要表達一個算法的多種不同實現,只用單元結構體和 Trait 的關聯函數的抽象方式,可以非常優雅的組織代碼,現在記錄如下。單元結構體是一個沒有字段的結構體,這種結構體被稱作 "單元結構體"(Unit Struct)。單元結構體類似於沒有任何成員的元組(即 (),或說 "unit" 類型),通常用於在類型層面提供一個獨特的標識。struct MyUni ⌘ Read more