fn remove_picture_by_type(&mut self, picture_type: PictureType) {
        self.frames_vec_mut().retain(|frame| {
            if frame.id() == "APIC" {
                let pic = match *frame.content() {
                    Content::Picture(ref picture) => picture,
                    _ => return false,
                };
                return pic.picture_type != picture_type;
            }

            true
        });
    }
/// Removes all pictures of the specified type.
///
/// # Example
/// ```
/// use id3::{Tag, TagLike};
/// use id3::frame::{Picture, PictureType};
///
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
///     let mut tag = Tag::new();
///     tag.add_picture(Picture {
///         mime_type: "image/jpeg".to_string(),
///         picture_type: PictureType::Other,
///         description: "some image".to_string(),
///         data: vec![],
///     });
///     tag.add_picture(Picture {
///         mime_type: "image/png".to_string(),
///         picture_type: PictureType::CoverFront,
///         description: "some other image".to_string(),
///         data: vec![],
///     });
///
///     assert_eq!(tag.pictures().count(), 2);
///     tag.remove_picture_by_type(PictureType::CoverFront);
///     assert_eq!(tag.pictures().count(), 1);
///     assert_eq!(tag.pictures().nth(0).ok_or("no such picture")?.picture_type, PictureType::Other);
///     Ok(())
/// }
/// ```
Removes all pictures of the specified type.
Removes all pictures of the specified type .
fn remove_picture_by_type(&mut self, picture_type: PictureType) {
        self.frames_vec_mut().retain(|frame| {
            if frame.id() == "APIC" {
                let pic = match *frame.content() {
                    Content::Picture(ref picture) => picture,
                    _ => return false,
                };
                return pic.picture_type != picture_type;
            }
            true
        });
    }
fn remove_picture_by_type ( & mut self , picture_type : PictureType ) { self . frames_vec_mut ( ) . retain ( | frame | { if frame . id ( ) == " " { let pic = match * frame . content ( ) { Content :: Picture ( ref picture ) => picture , _ => return false , } ; return pic . picture_type != picture_type ; } true } ) ; }
Removes all pictures of the specified type.
Removes all pictures of the specified type .
&mut self
picture_type
PictureType
&mut self
picture_type
PictureType
example
```
use id3::{Tag, TagLike};
use id3::frame::{Picture, PictureType}.

fn main() -> Result<(), Box> {
let mut tag = Tag::new();
tag.add_picture(Picture {
mime_type: "image/jpeg".to_string(),
picture_type: PictureType::Other,
description: "some image".to_string(),
data: vec![],
});
tag.add_picture(Picture {
mime_type: "image/png".to_string(),
picture_type: PictureType::CoverFront,
description: "some other image".to_string(),
data: vec![],
}).

assert_eq!(tag.pictures().count(), 2);
tag.remove_picture_by_type(PictureType::CoverFront);
assert_eq!(tag.pictures().count(), 1);
assert_eq!(tag.pictures().nth(0).ok_or("no such picture")?.picture_type, PictureType::Other);
Ok(())
}
```
` ` ` use id3 :: { Tag TagLike } ; use id3 :: frame :: { Picture PictureType } . fn main () - > Result< () Box > { let mut tag = Tag :: new () ; tag . add_picture ( Picture { mime_type : " image / jpeg " . to_string () picture_type : PictureType :: Other description : " some image " . to_string () data : vec! [] } ) ; tag . add_picture ( Picture { mime_type : " image / png " . to_string () picture_type : PictureType :: CoverFront description : " some other image " . to_string () data : vec! [] } ) . assert_eq! ( tag . pictures () . count () 2 ) ; tag . remove_picture_by_type ( PictureType :: CoverFront ) ; assert_eq! ( tag . pictures () . count () 1 ) ; assert_eq! ( tag . pictures () . nth ( 0 ) . ok_or ( " no such picture " ) ? . picture_type PictureType :: Other ) ; Ok (( )) } ` ` `