pub trait IterOwned: Sized {
    fn owned(self) -> Owned<Self>;
}

Required Methods

Calls to_owned() on all the items provided by the inner Iterator.

use gazebo::prelude::*;

let inputs = vec!["a", "b", "c"];
let outputs = inputs.into_iter().owned().collect::<Vec<_>>();
assert_eq!(outputs, vec!["a".to_owned(), "b".to_owned(), "c".to_owned()])

Implementors