cargo::ops::common_for_install_and_uninstall

Function one

Source
fn one<I, F>(i: I, f: F) -> CargoResult<Option<I::Item>>
where I: Iterator, F: FnOnce(Vec<I::Item>) -> String,
Expand description

Get one element from the iterator. Returns None if none left. Returns error if there is more than one item in the iterator.