Function deltachat::tools::single_value

source ·
pub(crate) fn single_value<T>(
    collection: impl IntoIterator<Item = T>
) -> Option<T>
Expand description

If collection contains exactly one element, return this element. Otherwise, return None.