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