ownership 0.3.0

Obtaining ownership.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(not(any(feature = "std", feature = "alloc")))]
compile_error!("expected either `std` or `alloc` to be enabled");

#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::vec::Vec;

use crate::{IntoOwned, iterable::recollect};

impl<T: IntoOwned> IntoOwned for Vec<T> {
    type Owned = Vec<T::Owned>;

    fn into_owned(self) -> Self::Owned {
        recollect(self)
    }
}