Function cargo::ops::common_for_install_and_uninstall::one
source ยท fn one<I, F>(i: I, f: F) -> CargoResult<Option<I::Item>>
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.