(self : &Self, index : usize, data : AllocatedStackMemory<'a, T>)
| 23 | impl <'a, T : 'a, U : allocated_memory::AllocatedSlice<&'a mut[T]> > |
| 24 | StackAllocator <'a, T, U> { |
| 25 | fn clear_if_necessary(self : &Self, index : usize, data : AllocatedStackMemory<'a, T>) |
| 26 | -> AllocatedStackMemory<'a, T> { |
| 27 | if index + 1 != self.system_resources.slice().len() { |
| 28 | let fnp = self.initialize; |
| 29 | fnp(data.mem); |
| 30 | } |
| 31 | return data; |
| 32 | } |
| 33 | } |
| 34 | impl<'a, T : 'a, U : allocated_memory::AllocatedSlice<&'a mut[T]> > |
| 35 | Allocator<T> for StackAllocator <'a, T, U> { |
no test coverage detected