NOTE: the official Array::get_array_memory_size() use buffer.capacity() which does not work on ffi arrays. we would like to use .len() instead for more precise memory statistics.
| 24 | // which does not work on ffi arrays. we would like to use .len() |
| 25 | // instead for more precise memory statistics. |
| 26 | pub trait ArraySize { |
| 27 | fn get_array_mem_size(&self) -> usize; |
| 28 | } |
| 29 | |
| 30 | impl<T: ?Sized + Array> ArraySize for T { |
| 31 | fn get_array_mem_size(&self) -> usize { |
nothing calls this directly
no outgoing calls
no test coverage detected