#[repr(i32)]pub enum I2cSpeed {
Default = 0,
_3Khz = 1,
_10Khz = 2,
_33Khz = 3,
_100Khz = 4,
_200Khz = 5,
_400Khz = 6,
}Variants§
Implementations§
Source§impl I2cSpeed
impl I2cSpeed
pub fn from_raw(raw: NV_I2C_SPEED) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_I2C_SPEED
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for I2cSpeed
impl<'de> Deserialize<'de> for I2cSpeed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<i32> for I2cSpeed
impl Into<i32> for I2cSpeed
Source§fn into(self) -> NV_I2C_SPEED
fn into(self) -> NV_I2C_SPEED
Converts this type into the (usually inferred) input type.
Source§impl Ord for I2cSpeed
impl Ord for I2cSpeed
Source§impl PartialOrd for I2cSpeed
impl PartialOrd for I2cSpeed
impl Copy for I2cSpeed
impl Eq for I2cSpeed
impl StructuralPartialEq for I2cSpeed
Auto Trait Implementations§
impl Freeze for I2cSpeed
impl RefUnwindSafe for I2cSpeed
impl Send for I2cSpeed
impl Sync for I2cSpeed
impl Unpin for I2cSpeed
impl UnwindSafe for I2cSpeed
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