Enum stm32f3xx_hal::Toggle[][src]

pub enum Toggle {
    On,
    Off,
}
Expand description

Toggle something on or off.

Convenience enum and wrapper around a bool, which more explicit about the intention to enable or disable something, in comparison to true or false.

Variants

On

Toggle something on / enable a thing.

Off

Toggle something off / disable a thing.

Trait Implementations

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.