Enum apint::Bit [] [src]

pub enum Bit {
    Unset,
    Set,
}

Represents the set or unset state of a bit within an ApInt.

Variants

Unset, or false or off state.

Set, or true or on state.

Methods

impl Bit
[src]

[src]

Converts this Bit into a bool.

  • Unset to false
  • Set to true

Trait Implementations

impl Debug for Bit
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Bit
[src]

impl Clone for Bit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Bit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Bit
[src]

impl Hash for Bit
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl From<bool> for Bit
[src]

[src]

Performs the conversion.

impl From<Bit> for bool
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Bit

impl Sync for Bit