/// Erases a number of pages.
Erases a number of pages.
Erases a number of pages .
pub fn erase_pages(&mut self, pages: &[Page]) -> Result<Erase<'_, T>> {
        let bootloader_info = self.bootloader_info()?;
        if pages
            .iter()
            .any(|page| !bootloader_info.application_pages().contains(&page))
        {
            return Err(Error::InvalidRequest);
        }
        Ok(Erase::pages(self, pages))
    }
pub fn erase_pages ( & mut self , pages : & [ Page ] ) -> Result < Erase < ' _ , T > > { let bootloader_info = self . bootloader_info ( ) ? ; if pages . iter ( ) . any ( | page | ! bootloader_info . application_pages ( ) . contains ( & page ) ) { return Err ( Error :: InvalidRequest ) ; } Ok ( Erase :: pages ( self , pages ) ) }
Erases a number of pages.
Erases a number of pages .
&mut self
pages
&[Page]