pub(super) fn stable_size(&self) -> HypervisorResult<u32> {
        let size = self.stable_memory_size.get();
        if size > MAX_32_BIT_STABLE_MEMORY_IN_PAGES {
            return Err(HypervisorError::Trapped(StableMemoryTooBigFor32Bit));
        }

        // Safe as we confirmed above the value is small enough to fit into 32-bits.
        Ok(size.try_into().unwrap())
    }
/// Determines size of stable memory in Web assembly pages.
Determines size of stable memory in Web assembly pages.
Determines size of stable memory in Web assembly pages .
pub(super) fn stable_size(&self) -> HypervisorResult<u32> {
        let size = self.stable_memory_size.get();
        if size > MAX_32_BIT_STABLE_MEMORY_IN_PAGES {
            return Err(HypervisorError::Trapped(StableMemoryTooBigFor32Bit));
        }
        // Safe as we confirmed above the value is small enough to fit into 32-bits.
        Ok(size.try_into().unwrap())
    }
pub ( super ) fn stable_size ( & self ) -> HypervisorResult < u32 > { let size = self . stable_memory_size . get ( ) ; if size > MAX_32_BIT_STABLE_MEMORY_IN_PAGES { return Err ( HypervisorError :: Trapped ( StableMemoryTooBigFor32Bit ) ) ; } // Safe as we confirmed above the value is small enough to fit into 32-bits. Ok ( size . try_into ( ) . unwrap ( ) ) }
Determines size of stable memory in Web assembly pages.
Determines size of stable memory in Web assembly pages .
&self
&self