/// The amount of memory currently being used by the canister.
The amount of memory currently being used by the canister.
The amount of memory currently being used by the canister .
pub fn memory_usage(&self, own_subnet_type: SubnetType) -> NumBytes {
        self.execution_state
            .as_ref()
            .map_or(NumBytes::from(0), |es| es.memory_usage())
            + self.system_state.memory_usage(own_subnet_type)
    }
pub fn memory_usage ( & self , own_subnet_type : SubnetType ) -> NumBytes { self . execution_state . as_ref ( ) . map_or ( NumBytes :: from ( 0 ) , | es | es . memory_usage ( ) ) + self . system_state . memory_usage ( own_subnet_type ) }
The amount of memory currently being used by the canister.
The amount of memory currently being used by the canister .
&self
own_subnet_type
SubnetType