Struct simavr_ffi::avr_regbit_t
source · #[repr(C, align(4))]pub struct avr_regbit_t {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>,
}Fields§
§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>Implementations§
source§impl avr_regbit_t
impl avr_regbit_t
pub fn reg(&self) -> u32
pub fn set_reg(&mut self, val: u32)
pub fn bit(&self) -> u32
pub fn set_bit(&mut self, val: u32)
pub fn mask(&self) -> u32
pub fn set_mask(&mut self, val: u32)
pub fn new_bitfield_1( reg: u32, bit: u32, mask: u32, ) -> __BindgenBitfieldUnit<[u8; 3]>
Trait Implementations§
source§impl Clone for avr_regbit_t
impl Clone for avr_regbit_t
source§fn clone(&self) -> avr_regbit_t
fn clone(&self) -> avr_regbit_t
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 avr_regbit_t
impl Debug for avr_regbit_t
impl Copy for avr_regbit_t
Auto Trait Implementations§
impl Freeze for avr_regbit_t
impl RefUnwindSafe for avr_regbit_t
impl Send for avr_regbit_t
impl Sync for avr_regbit_t
impl Unpin for avr_regbit_t
impl UnwindSafe for avr_regbit_t
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)