Improved memory documentation

This commit is contained in:
Syrus Akbary
2018-10-24 11:47:12 +02:00
parent bcad000cc2
commit fe9fb9fe42

View File

@ -1,3 +1,8 @@
//! The webassembly::Memory() constructor creates a new Memory object which is
//! a structure that holds the raw bytes of memory accessed by a
//! webassembly::Instance.
//! A memory created by Rust or in WebAssembly code will be accessible and
//! mutable from both Rust and WebAssembly.
use memmap::MmapMut;
use std::fmt;
use std::ops::{Deref, DerefMut};