Closed ninegua closed 3 years ago
This is useful to avoid an extra clone when the purpose is to take out the Lazy value.
Thought a little bit more about this. take-stype API is impossible, but we can use a Result to deconstruct lazy into value/fn "pair": https://github.com/matklad/once_cell/pull/131
Result
closed by https://github.com/matklad/once_cell/pull/131
This is useful to avoid an extra clone when the purpose is to take out the Lazy value.