Enum stm32wlxx_hal::gpio::OutputType
source · #[repr(u8)]pub enum OutputType {
PushPull = 0,
OpenDrain = 1,
}
Expand description
GPIO output types.
Variants§
PushPull = 0
Push-pull output.
OpenDrain = 1
Open-drain output.
This is typically used with Pull::Up
.
Trait Implementations§
source§impl Clone for OutputType
impl Clone for OutputType
source§fn clone(&self) -> OutputType
fn clone(&self) -> OutputType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutputType
impl Debug for OutputType
source§impl PartialEq for OutputType
impl PartialEq for OutputType
source§fn eq(&self, other: &OutputType) -> bool
fn eq(&self, other: &OutputType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OutputType
impl Eq for OutputType
impl StructuralEq for OutputType
impl StructuralPartialEq for OutputType
Auto Trait Implementations§
impl RefUnwindSafe for OutputType
impl Send for OutputType
impl Sync for OutputType
impl Unpin for OutputType
impl UnwindSafe for OutputType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more