Struct megadrive_sys::Version[][src]

pub struct Version(_);

A struct containing version information extracted from the console.

This can be used to determine region, resolution, frame rate and hardware revision.

Implementations

impl Version[src]

pub fn hardware_revision(self) -> u8[src]

Retrieve the hardware revision.

pub fn has_fdd(self) -> bool[src]

Check if a FDD is attached.

pub fn is_pal(self) -> bool[src]

Returns true if this is a PAL system.

pub fn is_ntsc(self) -> bool[src]

Returns true if this is a NTSC system.

pub fn is_overseas(self) -> bool[src]

Returns true if this is an ‘overseas’ model, i.e. not for use in Japan.

pub fn region(self) -> Region[src]

Return the region variation of this console.

Trait Implementations

impl Clone for Version[src]

impl Copy for Version[src]

impl Debug for Version[src]

Auto Trait Implementations

impl Send for Version

impl Sync for Version

impl Unpin for Version

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.