Struct megadrive_sys::Version [−][src]
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]
fn clone(&self) -> Version
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Version
[src]
impl Debug for Version
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,