pub enum RomFormat {
Z64BigEndian,
N64LittleEndian,
V64ByteSwapped,
}Expand description
ROM image byte order, derived from the magic in the first four bytes.
.z64 is big-endian (native), .n64 is little-endian (byte-swapped),
.v64 is byte-swapped within each 16-bit halfword. The loader normalizes
everything to big-endian internally.
Variants§
Z64BigEndian
.z64 — big-endian, the canonical internal order.
N64LittleEndian
.n64 — little-endian (32-bit word swap).
V64ByteSwapped
.v64 — byte-swapped halfwords.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RomFormat
impl<'de> Deserialize<'de> for RomFormat
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
impl Copy for RomFormat
impl Eq for RomFormat
impl StructuralPartialEq for RomFormat
Auto Trait Implementations§
impl Freeze for RomFormat
impl RefUnwindSafe for RomFormat
impl Send for RomFormat
impl Sync for RomFormat
impl Unpin for RomFormat
impl UnsafeUnpin for RomFormat
impl UnwindSafe for RomFormat
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