diff options
Diffstat (limited to 'incria/src/thunk.rs')
-rw-r--r-- | incria/src/thunk.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/incria/src/thunk.rs b/incria/src/thunk.rs index 937f109..2fe7873 100644 --- a/incria/src/thunk.rs +++ b/incria/src/thunk.rs @@ -19,6 +19,10 @@ impl<T> ThunkBackend<T> { pub fn new(thunk: T) -> Self { Self { thunk } } + + pub fn thunk(&self) -> &T { + &self.thunk + } } impl<K, V: 'static, T> LazyMappingBackend<K, V> for ThunkBackend<T> |