pub enum VramBank {
Zero = 0,
One = 1,
}Available on crate feature
cgb only.Expand description
Which half of the Game Boy Color’s video memory the CPU sees at 0x8000.
The PPU reads both halves through its own paths, so this is only about CPU access.
Variants§
Zero = 0
Tile slots and the two tilemaps, as on the original Game Boy.
One = 1
A second set of tile slots, and per-cell attributes where bank zero holds the tilemaps.
Trait Implementations§
impl Copy for VramBank
impl Eq for VramBank
impl StructuralPartialEq for VramBank
Auto Trait Implementations§
impl BankSafe for VramBank
impl Freeze for VramBank
impl RefUnwindSafe for VramBank
impl Send for VramBank
impl Sync for VramBank
impl Unpin for VramBank
impl UnsafeUnpin for VramBank
impl UnwindSafe for VramBank
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