recore 0.1.3

A re-implementation of various ::core features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Various reference-related items.

/// A blatant copy of [`std::borrow::ToOwned`], because that's not (yet) in
/// `core`.
pub trait ToOwned {
    /// The owned version of this type.
    type Owned: core::borrow::Borrow<Self>;

    /// Convert this value into an owned one.
    fn to_owned(&self) -> Self::Owned;

    /// TODO: document
    fn clone_into(&self, target: &mut Self::Owned) { 
        *target = self.to_owned();
     }
}