fn number_writeable_flash_regions(&self) -> usize {
        match *self {
            TbfHeader::TbfHeaderV1(_) => 0,
            TbfHeader::TbfHeaderV2(hd) => {
                hd.writeable_regions.map_or(0, |wr| wr.len())
            }
            _ => 0,
        }
    }
/// Get the number of flash regions this app has specified in its header.
Get the number of flash regions this app has specified in its header.
Get the number of flash regions this app has specified in its header .
fn number_writeable_flash_regions(&self) -> usize {
        match *self {
            TbfHeader::TbfHeaderV1(_) => 0,
            TbfHeader::TbfHeaderV2(hd) => {
                hd.writeable_regions.map_or(0, |wr| wr.len())
            }
            _ => 0,
        }
    }
fn number_writeable_flash_regions ( & self ) -> usize { match * self { TbfHeader :: TbfHeaderV1 ( _ ) => 0 , TbfHeader :: TbfHeaderV2 ( hd ) => { hd . writeable_regions . map_or ( 0 , | wr | wr . len ( ) ) } _ => 0 , } }
Get the number of flash regions this app has specified in its header.
Get the number of flash regions this app has specified in its header .
&self
&self