Unfortunately `ToStr` requires returning a `~str` while this can be handled with purely static strings (i.e. no allocations), so I think just a plain `impl` rather than a trait would be best.