mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-03 20:22:32 +08:00
12 lines
144 B
Rust
12 lines
144 B
Rust
|
// ANCHOR: here
|
||
|
struct Cacher<T>
|
||
|
where
|
||
|
T: Fn(u32) -> u32,
|
||
|
{
|
||
|
calculation: T,
|
||
|
value: Option<u32>,
|
||
|
}
|
||
|
// ANCHOR_END: here
|
||
|
|
||
|
fn main() {}
|