假設我們想實作一個向量運算的類別,如果沒有泛型,可能的Rust 虛擬碼如下: ... struct Reader {} // Use generic method to mimic functional overloading impl<'a> ...
確定! 回上一頁