Skip to content

Document why from_bits_unchecked is unsafe #200

@little-dude

Description

@little-dude

Hello,

From the documentation from_bits_unchecked() looks like what I need:

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

However the method is unsafe, so I'd like to know under which conditions I can safely use it, and what are the risks if I don't use it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions