#[derive(Clone, Debug)]/// The policy of a cache.
pubstructPolicy{max_capacity:Option<u64>,
}implPolicy{pub(crate)fnnew(max_capacity:Option<u64>)->Self{Self{ max_capacity }}/// Returns the `max_capacity` of the cache.
pubfnmax_capacity(&self)->Option<u64>{self.max_capacity
}}