(
&mut self,
cache: Bound<'_, PyAny>,
arguments: &Bound<'_, PyDict>,
)
| 34 | } |
| 35 | |
| 36 | pub(in crate::cache) fn bind( |
| 37 | &mut self, |
| 38 | cache: Bound<'_, PyAny>, |
| 39 | arguments: &Bound<'_, PyDict>, |
| 40 | ) { |
| 41 | self.cache = Some(cache.unbind()); |
| 42 | self.arguments = Some(arguments.clone().unbind()); |
| 43 | } |
| 44 | |
| 45 | pub fn begin(&mut self, py: Python<'_>, call: CacheCall) -> PyResult<Option<Py<PyAny>>> { |
| 46 | let Some(cache) = self.cache.as_ref() else { |