Enum DriveStrength
pub enum DriveStrength<A> {
Hal(A),
Lowest,
Standard,
Medium,
High,
Highest,
}
Expand description
Drive strength of an output.
This enum allows to either use high-level, portable values, roughly normalized across HALs, or to use HAL-specific values if needed.
Variants§
Hal(A)
HAL-specific drive strength setting.
Lowest
Lowest drive strength available on this HAL.
Standard
Most common reset value of drive strength on this HAL.
Medium
Medium drive strength.
High
High drive strength.
Highest
Highest drive strength available on this HAL.
Trait Implementations§
§impl<A> Clone for DriveStrength<A>where
A: Clone,
impl<A> Clone for DriveStrength<A>where
A: Clone,
§fn clone(&self) -> DriveStrength<A>
fn clone(&self) -> DriveStrength<A>
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 more§impl<A> Debug for DriveStrength<A>where
A: Debug,
impl<A> Debug for DriveStrength<A>where
A: Debug,
§impl<A> Default for DriveStrength<A>
impl<A> Default for DriveStrength<A>
§fn default() -> DriveStrength<A>
fn default() -> DriveStrength<A>
Returns the “default value” for a type. Read more
§impl<A> Format for DriveStrength<A>where
A: Format,
impl<A> Format for DriveStrength<A>where
A: Format,
§impl<A> PartialEq for DriveStrength<A>where
A: PartialEq,
impl<A> PartialEq for DriveStrength<A>where
A: PartialEq,
impl<A> Copy for DriveStrength<A>where
A: Copy,
impl<A> Eq for DriveStrength<A>where
A: Eq,
impl<A> StructuralPartialEq for DriveStrength<A>
Auto Trait Implementations§
impl<A> Freeze for DriveStrength<A>where
A: Freeze,
impl<A> RefUnwindSafe for DriveStrength<A>where
A: RefUnwindSafe,
impl<A> Send for DriveStrength<A>where
A: Send,
impl<A> Sync for DriveStrength<A>where
A: Sync,
impl<A> Unpin for DriveStrength<A>where
A: Unpin,
impl<A> UnwindSafe for DriveStrength<A>where
A: UnwindSafe,
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