fn wrap(inner: VMObjectPagedInner, lock_ref: Option<Arc<Mutex<()>>>) -> Arc<Self> {
        let obj = Arc::new(VMObjectPaged {
            lock: lock_ref.unwrap_or_else(|| Arc::new(Mutex::new(()))),
            inner: RefCell::new(inner),
        });
        obj.inner.borrow_mut().self_ref = Arc::downgrade(&obj);
        obj
    }
/// Internal: Wrap an inner struct to object.
Wrap an inner struct to object.
Wrap an inner struct to object .
fn wrap(inner: VMObjectPagedInner, lock_ref: Option<Arc<Mutex<()>>>) -> Arc<Self> {
        let obj = Arc::new(VMObjectPaged {
            lock: lock_ref.unwrap_or_else(|| Arc::new(Mutex::new(()))),
            inner: RefCell::new(inner),
        });
        obj.inner.borrow_mut().self_ref = Arc::downgrade(&obj);
        obj
    }
fn wrap ( inner : VMObjectPagedInner , lock_ref : Option < Arc < Mutex < ( ) > > > ) -> Arc < Self > { let obj = Arc :: new ( VMObjectPaged { lock : lock_ref . unwrap_or_else ( | | Arc :: new ( Mutex :: new ( ( ) ) ) ) , inner : RefCell :: new ( inner ) , } ) ; obj . inner . borrow_mut ( ) . self_ref = Arc :: downgrade ( & obj ) ; obj }
Internal: Wrap an inner struct to object.
Internal : Wrap an inner struct to object .
inner
VMObjectPagedInner
lock_ref
Option<Arc<Mutex<()>>>
inner
VMObjectPagedInner
lock_ref
Option<Arc<Mutex<()>>>