ownership 0.3.0

Obtaining ownership.
Documentation
1
2
3
4
5
6
7
8
9
use crate::IntoOwned;

impl<T: IntoOwned, const N: usize> IntoOwned for [T; N] {
    type Owned = [T::Owned; N];

    fn into_owned(self) -> Self::Owned {
        self.map(IntoOwned::into_owned)
    }
}