Skip to content

Implement Debug (and maybe other traits that take &(mut) self) for Unalign<T> where T: !Unaligned #207

@joshlf

Description

@joshlf

Use the technique described in #206, and maybe build on it if we add those methods.

One thing worth considering is whether it's acceptable to introduce the cost of copying 2 * size_of::<T>() bytes to trait impls that, for wrapper types, are supposed to just be passthroughs. Alternatively, we could just emit a simpler Debug impl that just prints the type's name but not its contents when T: !Unaligned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions