pub fn clear(&self) -> ZxResult {
        let mut guard = self.inner.lock();
        let inner = guard.as_mut().ok_or(ZxError::BAD_STATE)?;
        for vmar in inner.children.drain(..) {
            vmar.destroy_internal()?;
        }
        inner.mappings.clear();
        Ok(())
    }
/// Unmap all mappings and destroy all sub-regions of VMAR.
Unmap all mappings and destroy all sub-regions of VMAR.
Unmap all mappings and destroy all sub - regions of VMAR .
pub fn clear(&self) -> ZxResult {
        let mut guard = self.inner.lock();
        let inner = guard.as_mut().ok_or(ZxError::BAD_STATE)?;
        for vmar in inner.children.drain(..) {
            vmar.destroy_internal()?;
        }
        inner.mappings.clear();
        Ok(())
    }
pub fn clear ( & self ) -> ZxResult { let mut guard = self . inner . lock ( ) ; let inner = guard . as_mut ( ) . ok_or ( ZxError :: BAD_STATE ) ? ; for vmar in inner . children . drain ( .. ) { vmar . destroy_internal ( ) ? ; } inner . mappings . clear ( ) ; Ok ( ( ) ) }
Unmap all mappings and destroy all sub-regions of VMAR.
Unmap all mappings and destroy all sub - regions of VMAR .
&self
&self