#[repr(C)]pub struct LevelDuration {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
}Fields§
§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>Implementations§
Source§impl LevelDuration
impl LevelDuration
pub fn duration(&self) -> u32
pub fn set_duration(&mut self, val: u32)
pub unsafe fn duration_raw(this: *const Self) -> u32
pub unsafe fn set_duration_raw(this: *mut Self, val: u32)
pub fn level(&self) -> u8
pub fn set_level(&mut self, val: u8)
pub unsafe fn level_raw(this: *const Self) -> u8
pub unsafe fn set_level_raw(this: *mut Self, val: u8)
pub fn new_bitfield_1( duration: u32, level: u8, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for LevelDuration
impl Clone for LevelDuration
Source§fn clone(&self) -> LevelDuration
fn clone(&self) -> LevelDuration
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 LevelDuration
impl Debug for LevelDuration
impl Copy for LevelDuration
Auto Trait Implementations§
impl Freeze for LevelDuration
impl RefUnwindSafe for LevelDuration
impl Send for LevelDuration
impl Sync for LevelDuration
impl Unpin for LevelDuration
impl UnwindSafe for LevelDuration
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