deref_owned
This crate provides a smart pointer Owned, which points to an owned value.
It's similar to Cow, except that it's always owning its pointee. Moreover, a
trait IntoOwned is provided, which allows conversion of pointers to an owned
value though an .into_owned() method. The trait IntoOwned is implemented
for:
&'a T where T: ?Sized + ToOwnedCow<'a, T> where T: ?Sized + ToOwnedOwned<T>Box<T>
Changelog
- 2022-06-27: Version 0.2.0
- Some more trait implementations (
AsRef,AsMut,Borrow,BorrowMut, andDisplay) have been added forOwned(andDebug::fmt's output is transparent now) Derefis now a supertrait ofIntoOwnedandIntoOwned::Ownedmust implementBorrow<<Self as Deref>::Target>
- Some more trait implementations (
- 2022-06-26: Version 0.1.0
- Initial release