pub enum Variant {
Dsp2,
Dsp4,
St010,
}Expand description
Which single-game NEC DSP variant a cart carries.
Variants§
Dsp2
DSP-2 — Dungeon Master.
Dsp4
DSP-4 — Top Gear 3000.
St010
ST010 — F1 ROC II: Race of Champions.
Implementations§
Source§impl Variant
impl Variant
Sourcepub fn detect(title_upper: &str) -> Option<Self>
pub fn detect(title_upper: &str) -> Option<Self>
Detect the variant from the cart’s 21-byte internal title (uppercased), if it matches one
of the three known single-game carts. None for every other ROM (including plain DSP-1).
Sourcepub const fn firmware_name(self) -> &'static str
pub const fn firmware_name(self) -> &'static str
Firmware file name this project’s firmware_candidates convention expects.
Trait Implementations§
impl Copy for Variant
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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