gfx-memory icon indicating copy to clipboard operation
gfx-memory copied to clipboard

`MemoryAllocator`, `MemorySubAllocator`, etc should not have inherent `Debug` bounds.

Open Lymia opened this issue 7 years ago • 2 comments

Though it is good practice in libraries to have Debug impls, applications that define their own allocators may not always want to.

Lymia avatar Apr 14 '18 16:04 Lymia

You can always to a blank impl of Debug

impl Debug for Something {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "Something")
    }
}

richard-uk1 avatar May 03 '18 15:05 richard-uk1

I think @Lymia is right. We should not require Debug implementation in traits. But provide it for all structures.

zakarumych avatar May 03 '18 17:05 zakarumych