To remove the first matching element, one may:
xs.extract_if(.., |x| *x == some_x).next();
The resulting option will contain the value, if contained in the vector.