#[repr(u32)]pub enum Region {
P = 1,
E = 2,
J = 4,
K = 8,
W = 16,
C = 32,
}Expand description
All unique regions of New Super Mario Bros. Wii, using the letter names from their game codes (SMNP01, SMNE01, etc.).
Variants§
Implementations§
Source§impl Region
impl Region
Sourcepub const DEFAULT_ORDER: [Self; 6]
pub const DEFAULT_ORDER: [Self; 6]
A list of all regions, in their “default” order. If conflicting
copies of a region-specific file are found (and the
configuration options request that files be overwritten instead
of returning Err), smallworld will by default use the one
corresponding to the region listed first here.
This is public because the default order in which files are prioritized is a documented guarantee. The array may change in the future, though, if new versions of NSMBW are ever released.
Trait Implementations§
Source§impl BitFlag for Region
impl BitFlag for Region
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl From<&Region> for RegionBitFlags
impl From<&Region> for RegionBitFlags
Source§fn from(region: &Region) -> RegionBitFlags
fn from(region: &Region) -> RegionBitFlags
Converts to this type from the input type.
Source§impl RawBitFlags for Region
impl RawBitFlags for Region
Source§const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x00000000): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x00000000): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x00000000): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x00000000): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x0000003f): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x0000003f): <Region as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<Region>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<Region>"
The name of the type for debug formatting purposes. Read more
impl Copy for Region
impl Eq for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more