pub fn check_erase<T: NorFlash>( flash: &T, from: u32, to: u32, ) -> Result<(), NorFlashErrorKind>
Return whether an erase operation is aligned and within bounds.