pub fn is_selected<S: PartialEq<K>, K: ?Sized>( selected: &Option<S>, key: &K, ) -> bool
Whether the item with key is the selected one.
key