fn adjust_memory(&self, requested: &MemoryType) -> MemoryType {
        let mut adjusted = *requested;
        if requested.maximum.is_none() {
            adjusted.maximum = Some(self.limit);
        }
        adjusted
    }
/// Takes an input memory type as requested by the guest and sets
/// a maximum if missing. The resulting memory type is final if
/// valid. However, this can produce invalid types, such that
/// validate_memory must be called before creating the memory.
Takes an input memory type as requested by the guest and sets
a maximum if missing. The resulting memory type is final if
valid. However, this can produce invalid types, such that
validate_memory must be called before creating the memory.
Takes an input memory type as requested by the guest and sets a maximum if missing . The resulting memory type is final if valid . However this can produce invalid types such that validate_memory must be called before creating the memory .
fn adjust_memory(&self, requested: &MemoryType) -> MemoryType {
        let mut adjusted = *requested;
        if requested.maximum.is_none() {
            adjusted.maximum = Some(self.limit);
        }
        adjusted
    }
fn adjust_memory ( & self , requested : & MemoryType ) -> MemoryType { let mut adjusted = * requested ; if requested . maximum . is_none ( ) { adjusted . maximum = Some ( self . limit ) ; } adjusted }
Takes an input memory type as requested by the guest and sets
a maximum if missing.
Takes an input memory type as requested by the guest and sets a maximum if missing .
&self
requested
&MemoryType
&self
requested
&MemoryType