Enum libftd2xx::DriveCurrent
source · #[repr(u8)]pub enum DriveCurrent {
Milliamps4 = 4,
Milliamps8 = 8,
Milliamps12 = 12,
Milliamps16 = 16,
}
Expand description
FTDI pin drive currents.
Variants§
Milliamps4 = 4
4mA drive current.
Milliamps8 = 8
8mA drive current.
Milliamps12 = 12
12mA drive current.
Milliamps16 = 16
16mA drive current.
Trait Implementations§
source§impl Clone for DriveCurrent
impl Clone for DriveCurrent
source§fn clone(&self) -> DriveCurrent
fn clone(&self) -> DriveCurrent
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 DriveCurrent
impl Debug for DriveCurrent
source§impl Ord for DriveCurrent
impl Ord for DriveCurrent
source§fn cmp(&self, other: &DriveCurrent) -> Ordering
fn cmp(&self, other: &DriveCurrent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DriveCurrent
impl PartialEq for DriveCurrent
source§fn eq(&self, other: &DriveCurrent) -> bool
fn eq(&self, other: &DriveCurrent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DriveCurrent
impl PartialOrd for DriveCurrent
source§fn partial_cmp(&self, other: &DriveCurrent) -> Option<Ordering>
fn partial_cmp(&self, other: &DriveCurrent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for DriveCurrent
impl TryFrom<u8> for DriveCurrent
impl Copy for DriveCurrent
impl Eq for DriveCurrent
impl StructuralPartialEq for DriveCurrent
Auto Trait Implementations§
impl RefUnwindSafe for DriveCurrent
impl Send for DriveCurrent
impl Sync for DriveCurrent
impl Unpin for DriveCurrent
impl UnwindSafe for DriveCurrent
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