#[repr(transparent)]pub struct I2C_ERR_CODE(pub c_int);Expand description
I2C用の汎用エラーコード
Note: 型はint8_tを想定しているが, if_listでラップされているためI2Cの公開関数の返り値はintとなっている 基本負なのはRXの返り値は正が送ったByte数, 負がエラーコードとなっているため
Tuple Fields§
§0: c_intTrait Implementations§
Source§impl BitAnd for I2C_ERR_CODE
impl BitAnd for I2C_ERR_CODE
Source§impl BitAndAssign for I2C_ERR_CODE
impl BitAndAssign for I2C_ERR_CODE
Source§fn bitand_assign(&mut self, rhs: I2C_ERR_CODE)
fn bitand_assign(&mut self, rhs: I2C_ERR_CODE)
Performs the
&= operation. Read moreSource§impl BitOr for I2C_ERR_CODE
impl BitOr for I2C_ERR_CODE
Source§impl BitOrAssign for I2C_ERR_CODE
impl BitOrAssign for I2C_ERR_CODE
Source§fn bitor_assign(&mut self, rhs: I2C_ERR_CODE)
fn bitor_assign(&mut self, rhs: I2C_ERR_CODE)
Performs the
|= operation. Read moreSource§impl Clone for I2C_ERR_CODE
impl Clone for I2C_ERR_CODE
Source§fn clone(&self) -> I2C_ERR_CODE
fn clone(&self) -> I2C_ERR_CODE
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 I2C_ERR_CODE
impl Debug for I2C_ERR_CODE
Source§impl Hash for I2C_ERR_CODE
impl Hash for I2C_ERR_CODE
Source§impl PartialEq for I2C_ERR_CODE
impl PartialEq for I2C_ERR_CODE
impl Copy for I2C_ERR_CODE
impl Eq for I2C_ERR_CODE
impl StructuralPartialEq for I2C_ERR_CODE
Auto Trait Implementations§
impl Freeze for I2C_ERR_CODE
impl RefUnwindSafe for I2C_ERR_CODE
impl Send for I2C_ERR_CODE
impl Sync for I2C_ERR_CODE
impl Unpin for I2C_ERR_CODE
impl UnwindSafe for I2C_ERR_CODE
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