pub struct ExAttribute {
pub palette: u8,
pub chr_bank: u16,
}Expand description
Re-export of the mapper-side per-tile extended-attribute info.
Lives in rustynes-mappers (the canonical owner) and is re-declared here as
a small POD to avoid making rustynes-ppu depend on rustynes-mappers. The
lockstep bus’s PpuBusAdapter translates between the two.
Fields§
§palette: u82-bit palette select for this tile.
chr_bank: u1612-bit physical CHR bank (4 KiB units) for this tile.
Trait Implementations§
Source§impl Clone for ExAttribute
impl Clone for ExAttribute
Source§fn clone(&self) -> ExAttribute
fn clone(&self) -> ExAttribute
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 ExAttribute
impl Debug for ExAttribute
Source§impl PartialEq for ExAttribute
impl PartialEq for ExAttribute
impl Copy for ExAttribute
impl Eq for ExAttribute
impl StructuralPartialEq for ExAttribute
Auto Trait Implementations§
impl Freeze for ExAttribute
impl RefUnwindSafe for ExAttribute
impl Send for ExAttribute
impl Sync for ExAttribute
impl Unpin for ExAttribute
impl UnsafeUnpin for ExAttribute
impl UnwindSafe for ExAttribute
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