pub struct SaveIcon {
pub palette: [u16; 16],
pub pixels: [u8; 128],
}Expand description
A native PS1 memory-card save icon.
The BIOS displays a 16×16, 4bpp indexed image. pixels contains two
left-to-right pixels per byte (low nibble first); palette contains the 16
BGR555 colours. This type represents one static icon frame.
Fields§
§palette: [u16; 16]Sixteen BGR555 palette entries. Palette index zero is conventionally transparent.
pixels: [u8; 128]16×16 pixels at 4bpp: exactly one 128-byte memory-card frame.
Implementations§
Trait Implementations§
impl Copy for SaveIcon
impl Eq for SaveIcon
impl StructuralPartialEq for SaveIcon
Auto Trait Implementations§
impl Freeze for SaveIcon
impl RefUnwindSafe for SaveIcon
impl Send for SaveIcon
impl Sync for SaveIcon
impl Unpin for SaveIcon
impl UnsafeUnpin for SaveIcon
impl UnwindSafe for SaveIcon
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)