pub fn create_anon_guest_memory(
        regions: &[(GuestAddress, usize)],
        track_dirty_pages: bool,
    ) -> std::result::Result<GuestMemoryMmap, Error> {
        create_guest_memory(
            &regions.iter().map(|r| (None, r.0, r.1)).collect::<Vec<_>>(),
            track_dirty_pages,
        )
    }
/// Test helper used to initialize the guest memory, without the option of file-backed mmap.
/// It is just a little syntactic sugar that helps deduplicate test code.
Test helper used to initialize the guest memory, without the option of file-backed mmap.
It is just a little syntactic sugar that helps deduplicate test code.
Test helper used to initialize the guest memory without the option of file - backed mmap . It is just a little syntactic sugar that helps deduplicate test code .
pub fn create_anon_guest_memory(
        regions: &[(GuestAddress, usize)],
        track_dirty_pages: bool,
    ) -> std::result::Result<GuestMemoryMmap, Error> {
        create_guest_memory(
            &regions.iter().map(|r| (None, r.0, r.1)).collect::<Vec<_>>(),
            track_dirty_pages,
        )
    }
pub fn create_anon_guest_memory ( regions : & [ ( GuestAddress , usize ) ] , track_dirty_pages : bool , ) -> std :: result :: Result < GuestMemoryMmap , Error > { create_guest_memory ( & regions . iter ( ) . map ( | r | ( None , r . 0 , r . 1 ) ) . collect :: < Vec < _ > > ( ) , track_dirty_pages , ) }
Test helper used to initialize the guest memory, without the option of file-backed mmap.
Test helper used to initialize the guest memory without the option of file - backed mmap .
regions
&[(GuestAddress, usize)]
track_dirty_pages
bool
regions
&[(GuestAddress, usize)]
track_dirty_pages
bool