re-implemented Debug to show the bits field of the internal struct as… #9

Merged
CraZySacX merged 1 commit from master into master 2015-06-01 15:34:21 -05:00
CraZySacX commented 2015-06-01 15:17:21 -05:00 (Migrated from github.com)

… binary (8-bits wide)

Fixes issue #8 by re-implementing Debug to a simpler representation:

$BitFlags { bits: 0bXXXXXXXX }

If this isn't preferable, I would recommend dropping the general Debug impl and let everyone implement their own.

… binary (8-bits wide) Fixes issue #8 by re-implementing Debug to a simpler representation: `$BitFlags { bits: 0bXXXXXXXX }` If this isn't preferable, I would recommend dropping the general Debug impl and let everyone implement their own.
alexcrichton commented 2015-06-01 15:34:18 -05:00 (Migrated from github.com)

Thanks! I think I'll remove the 10-character width limit for now (as it could be larger or smaller), but I'll do that locally.

Thanks! I think I'll remove the 10-character width limit for now (as it could be larger or smaller), but I'll do that locally.
emberian commented 2015-06-03 00:17:50 -05:00 (Migrated from github.com)

This sucks a lot for my usecases at least, since a non-symbolic representation is impossible to decipher (I have 61 cases right now). I don't see a good way to do it in the macro though in the face of #8.

This sucks a lot for my usecases at least, since a non-symbolic representation is impossible to decipher (I have 61 cases right now). I don't see a good way to do it in the macro though in the face of #8.
Sign in to join this conversation.
No reviewers
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-bitflags/bitflags!9
No description provided.