pub trait IntoOnly {
    type Item;

    fn into_only(self) -> Result<Self::Item>;
}
Expand description

Returns the only element of an Iterator, or an error if it has more than one element.

Required Associated Types§

Required Methods§

Implementors§