Set the sharedness for the memory type being built. The default is `false`, aka unshared. Note that shared memories are part of [the threads proposal](https://github.com/WebAssembly/threads) for WebAssembly which is not fully standardized yet.
(&mut self, shared: bool)
| 3316 | /// proposal](https://github.com/WebAssembly/threads) for WebAssembly which |
| 3317 | /// is not fully standardized yet. |
| 3318 | pub fn shared(&mut self, shared: bool) -> &mut Self { |
| 3319 | self.ty.shared = shared; |
| 3320 | self |
| 3321 | } |
| 3322 | |
| 3323 | /// Set the log base 2 of the page size, in bytes, for the memory type being |
| 3324 | /// built. |