ba28adf337
I was going to add a new API that returns a pointer, and that just wasn't going to work with the trait AFAICS; we'd need to be generic across many different types. Let's use plain functions; it's slightly less elegant but is clear and works. Closes: #1474 Approved by: jlebon