drop_element

Function drop_element 

Source
pub(crate) fn drop_element<T, U: ?Sized>(vec: &mut Vec<T>, target: &U) -> bool
where T: PartialEq<U>,
Expand description

Removes the first occurrence of an element from a vector. Returns true if found and removed, false otherwise.