pub enum MappedWrite {
None,
Bus,
ChrRam(usize, u8),
CIRam(usize, u8),
ExRam(usize, u8),
PrgRam(usize, u8),
PrgRamProtect(bool),
}
Expand description
Type of write operation for an address for a given Mapper.
Variants§
None
Do nothing with this write.
Bus
Defer to default data bus behavior for this write.
ChrRam(usize, u8)
Write value to CHR RAM address.
CIRam(usize, u8)
Write value to a non-mirrored Console-Internal RAM (i.e. Nametable) address for Mappers that support custom Nametable Mirroring.
ExRam(usize, u8)
Write value to an External RAM address for Mappers that support EXRAM.
PrgRam(usize, u8)
Write value to a PRG RAM address.
PrgRamProtect(bool)
Toggle PRG RAM write protection.
Trait Implementations§
Source§impl Clone for MappedWrite
impl Clone for MappedWrite
Source§fn clone(&self) -> MappedWrite
fn clone(&self) -> MappedWrite
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 MappedWrite
impl Debug for MappedWrite
Source§impl<'de> Deserialize<'de> for MappedWrite
impl<'de> Deserialize<'de> for MappedWrite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MappedWrite
impl PartialEq for MappedWrite
Source§impl Serialize for MappedWrite
impl Serialize for MappedWrite
impl Copy for MappedWrite
impl Eq for MappedWrite
impl StructuralPartialEq for MappedWrite
Auto Trait Implementations§
impl Freeze for MappedWrite
impl RefUnwindSafe for MappedWrite
impl Send for MappedWrite
impl Sync for MappedWrite
impl Unpin for MappedWrite
impl UnwindSafe for MappedWrite
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