pub struct Version(/* private fields */);Expand description
A struct containing version information extracted from the console.
This can be used to determine region, resolution, frame rate and hardware revision.
Implementations§
Source§impl Version
impl Version
Sourcepub fn hardware_revision(self) -> u8
pub fn hardware_revision(self) -> u8
Retrieve the hardware revision.
Sourcepub fn is_overseas(self) -> bool
pub fn is_overseas(self) -> bool
Returns true if this is an ‘overseas’ model, i.e. not for use in Japan.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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