摘要:
目的 本文主要围绕怎么用rust语言来设计一个cache,期间会用到闭包,泛型。 实现 use std::{cmp::Eq, hash::Hash, collections::HashMap}; struct Cacher<T, U, V> where T: Fn(U) -> V { calcula 阅读全文
posted @ 2022-02-01 14:13
yihailin
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号