Skip to content

What are the validity invariants for AtomicBool? #208

Closed
@asajeffrey

Description

@asajeffrey

The validity invariant for bool is that it must be 0x01 or 0x00. Does AtomicBool have the same requirement, or is it allowed to contain any u8? Under the hood, it's an AtomicU8, so the current implementation doesn't have the requirement of being a valid bool, but is this part of its contract?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-validityTopic: Related to validity invariants

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions