pub fn from_index(idx: u8) -> Option<Self> {
        if idx >= num_pages() {
            None
        } else {
            Some(Page { idx })
        }
    }
/// Create a page address from an index.
///
/// Returns `None` if the value index is greater than the index of the last
/// page, for example `0x7F` (page 127) on the STM32WLE5.
///
/// # Example
///
/// ```no_run
/// use stm32wlxx_hal::flash::Page;
///
/// assert!(Page::from_index(8).is_some());
/// assert!(Page::from_index(128).is_none());
/// ```
Create a page address from an index.
Returns `None` if the value index is greater than the index of the last
page, for example `0x7F` (page 127) on the STM32WLE5.
Create a page address from an index . Returns ` None ` if the value index is greater than the index of the last page for example ` 0x7F ` ( page 127 ) on the STM32WLE5 .
pub fn from_index(idx: u8) -> Option<Self> {
        if idx >= num_pages() {
            None
        } else {
            Some(Page { idx })
        }
    }
pub fn from_index ( idx : u8 ) -> Option < Self > { if idx >= num_pages ( ) { None } else { Some ( Page { idx } ) } }
Create a page address from an index.
Create a page address from an index .
idx
u8
example
```no_run
use stm32wlxx_hal::flash::Page.


` ` ` no_run use stm32wlxx_hal :: flash :: Page .