Skip to content

Implement ! (std::ops::Not) for Value #30

@Lindenk

Description

@Lindenk

Because of the way rust handles Enums vs Integers, there is no convenient way to invert a logic level with rust-wiringpi. I propose std::ops::Not be implemented for Value so that it can be inverted:

!High would be Low
!Low would be High

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions