fn remove(&mut self, id: impl AsRef<str>) -> Vec<Frame> {
        let mut from = Vec::new();
        swap(&mut from, self.frames_vec_mut());
        let (keep, remove): (Vec<Frame>, Vec<Frame>) = from
            .into_iter()
            .partition(|frame| frame.id() != id.as_ref());
        *self.frames_vec_mut() = keep;
        remove
    }
/// Remove all frames with the specified identifier and return them.
///
/// # Example
/// ```
/// use id3::{Content, Frame, Tag, TagLike};
///
/// let mut tag = Tag::new();
///
/// tag.add_frame(Frame::text("TALB", ""));
/// tag.add_frame(Frame::text("TPE1", ""));
/// assert_eq!(tag.frames().count(), 2);
///
/// let removed = tag.remove("TALB");
/// assert_eq!(tag.frames().count(), 1);
/// assert_eq!(removed.len(), 1);
///
/// let removed = tag.remove("TPE1");
/// assert_eq!(tag.frames().count(), 0);
/// assert_eq!(removed.len(), 1);
/// ```
Remove all frames with the specified identifier and return them.
Remove all frames with the specified identifier and return them .
fn remove(&mut self, id: impl AsRef<str>) -> Vec<Frame> {
        let mut from = Vec::new();
        swap(&mut from, self.frames_vec_mut());
        let (keep, remove): (Vec<Frame>, Vec<Frame>) = from
            .into_iter()
            .partition(|frame| frame.id() != id.as_ref());
        *self.frames_vec_mut() = keep;
        remove
    }
fn remove ( & mut self , id : impl AsRef < str > ) -> Vec < Frame > { let mut from = Vec :: new ( ) ; swap ( & mut from , self . frames_vec_mut ( ) ) ; let ( keep , remove ) : ( Vec < Frame > , Vec < Frame > ) = from . into_iter ( ) . partition ( | frame | frame . id ( ) != id . as_ref ( ) ) ; * self . frames_vec_mut ( ) = keep ; remove }
Remove all frames with the specified identifier and return them.
Remove all frames with the specified identifier and return them .
&mut self
id
impl AsRef<str>
&mut self
id
impl AsRef<str>
example
```
use id3::{Content, Frame, Tag, TagLike}.

let mut tag = Tag::new().



let removed = tag.remove("TALB");
assert_eq!(tag.frames().count(), 1);
assert_eq!(removed.len(), 1).


` ` ` use id3 :: { Content Frame Tag TagLike } . let mut tag = Tag :: new () . let removed = tag . remove ( " TALB " ) ; assert_eq! ( tag . frames () . count () 1 ) ; assert_eq! ( removed . len () 1 ) .