My gut feeling is "No because OwnedFoo is not a smart pointer to a Foo" I'd probably lean toward an `impl AsRef<[_]> for OwnedFoo` or else a `pub fn borrow(&self) -> Foo<'_>`
Deref requires that the implementing type "contain" the target.
Nov 18, 2020 ยท 11:19 PM UTC
1
1

