pub struct DigitalPin<'a> { /* private fields */ }

Implementations

Changes pin’s state to low or high.

See: Self::set_low(), Self::set_high().

Changes pin’s state to low.

See: Self::set().

Changes pin’s state to high.

See: Self::set().

Returns whether pin’s state is low.

Returns whether pin’s state is high.

Asserts that pin’s state is high or low.

See: Self::assert_low(), Self::assert_high().

Asserts that pin’s state is low.

See: Self::assert().

Asserts that pin’s state is high.

See: Self::assert().

Return pin’s name, e.g. PC6.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.