#[repr(u8)]pub enum DriverStrength {
TypeB = 0,
TypeA = 1,
TypeC = 2,
TypeD = 3,
}
Expand description
Represents the driver strength (Group 3) for CMD6
.
Variants§
TypeB = 0
Type B driver strength.
TypeA = 1
Type A driver strength.
TypeC = 2
Type C driver strength.
TypeD = 3
Type D driver strength.
Implementations§
Source§impl DriverStrength
impl DriverStrength
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new DriverStrength.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a DriverStrength.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a DriverStrength into a u8
.
Trait Implementations§
Source§impl Clone for DriverStrength
impl Clone for DriverStrength
Source§fn clone(&self) -> DriverStrength
fn clone(&self) -> DriverStrength
Returns a duplicate 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 DriverStrength
impl Debug for DriverStrength
Source§impl Default for DriverStrength
impl Default for DriverStrength
Source§impl From<DriverStrength> for u8
impl From<DriverStrength> for u8
Source§fn from(val: DriverStrength) -> Self
fn from(val: DriverStrength) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DriverStrength
impl PartialEq for DriverStrength
Source§impl TryFrom<u8> for DriverStrength
impl TryFrom<u8> for DriverStrength
impl Copy for DriverStrength
impl Eq for DriverStrength
impl StructuralPartialEq for DriverStrength
Auto Trait Implementations§
impl Freeze for DriverStrength
impl RefUnwindSafe for DriverStrength
impl Send for DriverStrength
impl Sync for DriverStrength
impl Unpin for DriverStrength
impl UnwindSafe for DriverStrength
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