pub fn as_embedded_storage<F>(&'a self, flash: &'a mut F) -> FlashRegion<'a, F>
    where
        F: embedded_storage::ReadStorage,
    {
        FlashRegion { raw: self, flash }
    }
Provides a "view" into the partition allowing to read/write the
partition contents by using the given [embedded_storage::Storage] and/or
[embedded_storage::ReadStorage] implementation.
esp-bootloader-esp-idf/src/partitions.rs