Struct runes::apu::APU [−][src]
Fields
pulse1: Pulse
pulse2: Pulse
triangle: Triangle
noise: Noise
dmc: DMC
Implementations
impl<'a> APU<'a>
[src]
pub fn new(spkr: &'a mut dyn Speaker) -> Self
[src]
pub fn load(&mut self, reader: &mut dyn Read) -> bool
[src]
pub fn save(&self, writer: &mut dyn Write) -> bool
[src]
pub fn tick(&mut self, bus: &CPUBus<'_>) -> bool
[src]
pub fn output(&mut self) -> i16
[src]
pub fn read_status(&mut self) -> u8
[src]
pub fn write_status(&mut self, data: u8)
[src]
pub fn write_frame_counter(&mut self, data: u8)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,