(&mut self)
| 1094 | |
| 1095 | impl Drop for MutableBuffer { |
| 1096 | fn drop(&mut self) { |
| 1097 | if self.layout.size() != 0 { |
| 1098 | // Safety: data was allocated with standard allocator with given layout |
| 1099 | unsafe { std::alloc::dealloc(self.data.as_ptr() as _, self.layout) }; |
| 1100 | } |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | impl PartialEq for MutableBuffer { |