(&self, store: &Store)
| 26 | |
| 27 | #[inline] |
| 28 | pub(crate) fn validate_store(&self, store: &Store) -> Result<(), Trap> { |
| 29 | if self.store_id != store.id() { |
| 30 | return Err(Trap::InvalidStore); |
| 31 | } |
| 32 | Ok(()) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | /// A memory instance in a store. |
no test coverage detected