Struct avr_tester::DigitalPin
source · [−]pub struct DigitalPin<'a> { /* private fields */ }
Implementations
sourceimpl<'a> DigitalPin<'a>
impl<'a> DigitalPin<'a>
sourcepub fn set(&mut self, high: bool)
pub fn set(&mut self, high: bool)
Changes pin’s state to low or high.
See: Self::set_low()
, Self::set_high()
.
sourcepub fn set_low(&mut self)
pub fn set_low(&mut self)
Changes pin’s state to low.
See: Self::set()
.
sourcepub fn set_high(&mut self)
pub fn set_high(&mut self)
Changes pin’s state to high.
See: Self::set()
.
sourcepub fn assert_low(&mut self)
pub fn assert_low(&mut self)
Asserts that pin’s state is low.
See: Self::assert()
.
sourcepub fn assert_high(&mut self)
pub fn assert_high(&mut self)
Asserts that pin’s state is high.
See: Self::assert()
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DigitalPin<'a>
impl<'a> !Send for DigitalPin<'a>
impl<'a> !Sync for DigitalPin<'a>
impl<'a> Unpin for DigitalPin<'a>
impl<'a> !UnwindSafe for DigitalPin<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more