#[repr(C)]pub struct GB_apu_t__bindgen_ty_1 {
pub pulse_length: u16,
pub current_volume: u8,
pub volume_countdown: u8,
pub current_sample_index: u8,
pub sample_surpressed: bool,
pub sample_countdown: u16,
pub sample_length: u16,
pub length_enabled: bool,
pub envelope_clock: GB_envelope_clock_t,
pub delay: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
}Fields§
§pulse_length: u16§current_volume: u8§volume_countdown: u8§current_sample_index: u8§sample_surpressed: bool§sample_countdown: u16§sample_length: u16§length_enabled: bool§envelope_clock: GB_envelope_clock_t§delay: u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>Implementations§
Source§impl GB_apu_t__bindgen_ty_1
impl GB_apu_t__bindgen_ty_1
pub fn did_tick(&self) -> bool
pub fn set_did_tick(&mut self, val: bool)
pub fn just_reloaded(&self) -> bool
pub fn set_just_reloaded(&mut self, val: bool)
pub fn padding(&self) -> u8
pub fn set_padding(&mut self, val: u8)
pub fn new_bitfield_1( did_tick: bool, just_reloaded: bool, padding: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for GB_apu_t__bindgen_ty_1
impl Clone for GB_apu_t__bindgen_ty_1
Source§fn clone(&self) -> GB_apu_t__bindgen_ty_1
fn clone(&self) -> GB_apu_t__bindgen_ty_1
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 GB_apu_t__bindgen_ty_1
impl Debug for GB_apu_t__bindgen_ty_1
impl Copy for GB_apu_t__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for GB_apu_t__bindgen_ty_1
impl RefUnwindSafe for GB_apu_t__bindgen_ty_1
impl Send for GB_apu_t__bindgen_ty_1
impl Sync for GB_apu_t__bindgen_ty_1
impl Unpin for GB_apu_t__bindgen_ty_1
impl UnwindSafe for GB_apu_t__bindgen_ty_1
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