@ -9,7 +9,7 @@ use std::{ffi::CString, fmt};
/// Index of a Mii on the [`MiiSelector`] interface.
/// Index of a Mii on the [`MiiSelector`] interface.
///
///
/// See [`MiiSelector::white list_user_mii()`] and related functions for more information.
/// See [`MiiSelector::allo wlist_user_mii()`] and related functions for more information.
#[ derive(Debug, Clone, Copy, Eq, PartialEq) ]
#[ derive(Debug, Clone, Copy, Eq, PartialEq) ]
pub enum Index {
pub enum Index {
/// Specific Mii index.
/// Specific Mii index.
@ -136,11 +136,11 @@ impl MiiSelector {
unsafe { ctru_sys ::miiSelectorSetOptions ( self . config . as_mut ( ) , options . bits ( ) ) }
unsafe { ctru_sys ::miiSelectorSetOptions ( self . config . as_mut ( ) , options . bits ( ) ) }
}
}
/// White list a guest Mii based on its index.
/// Allow list a guest Mii based on its index.
///
///
/// # Notes
/// # Notes
///
///
/// Guest Mii's won't be available regardless of their whitelist/bla cklist state if the [`MiiSelector`] is run without setting [`Options::ENABLE_GUESTS`].
/// Guest Mii's won't be available regardless of their allowlist/blo cklist state if the [`MiiSelector`] is run without setting [`Options::ENABLE_GUESTS`].
/// Look into [`MiiSelector::set_options()`] to see how to work with options.
/// Look into [`MiiSelector::set_options()`] to see how to work with options.
///
///
/// # Example
/// # Example
@ -151,12 +151,12 @@ impl MiiSelector {
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// let mut mii_selector = MiiSelector::new();
/// let mut mii_selector = MiiSelector::new();
///
///
/// // White list the guest Mii at index 2.
/// // Allow list the guest Mii at index 2.
/// mii_selector.white list_guest_mii(Index::Index(2));
/// mii_selector.allo wlist_guest_mii(Index::Index(2));
/// # }
/// # }
/// ```
/// ```
#[ doc(alias = " miiSelectorWhitelistGuestMii " ) ]
#[ doc(alias = " miiSelectorWhitelistGuestMii " ) ]
pub fn white list_guest_mii ( & mut self , mii_index : Index ) {
pub fn allo wlist_guest_mii( & mut self , mii_index : Index ) {
let index = match mii_index {
let index = match mii_index {
Index ::Index ( i ) = > i ,
Index ::Index ( i ) = > i ,
Index ::All = > ctru_sys ::MIISELECTOR_GUESTMII_SLOTS ,
Index ::All = > ctru_sys ::MIISELECTOR_GUESTMII_SLOTS ,
@ -165,11 +165,11 @@ impl MiiSelector {
unsafe { ctru_sys ::miiSelectorWhitelistGuestMii ( self . config . as_mut ( ) , index ) }
unsafe { ctru_sys ::miiSelectorWhitelistGuestMii ( self . config . as_mut ( ) , index ) }
}
}
/// Bla cklist a guest Mii based on its index.
/// Blo cklist a guest Mii based on its index.
///
///
/// # Notes
/// # Notes
///
///
/// Guest Mii's won't be available regardless of their whitelist/bla cklist state if the [`MiiSelector`] is run without setting [`Options::ENABLE_GUESTS`].
/// Guest Mii's won't be available regardless of their allowlist/blo cklist state if the [`MiiSelector`] is run without setting [`Options::ENABLE_GUESTS`].
/// Look into [`MiiSelector::set_options()`] to see how to work with options.
/// Look into [`MiiSelector::set_options()`] to see how to work with options.
///
///
/// # Example
/// # Example
@ -180,12 +180,12 @@ impl MiiSelector {
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// let mut mii_selector = MiiSelector::new();
/// let mut mii_selector = MiiSelector::new();
///
///
/// // Bla cklist the guest Mii at index 1 so that it cannot be selected.
/// // Blo cklist the guest Mii at index 1 so that it cannot be selected.
/// mii_selector.bla cklist_guest_mii(Index::Index(1));
/// mii_selector.blo cklist_guest_mii(Index::Index(1));
/// # }
/// # }
/// ```
/// ```
#[ doc(alias = " miiSelectorBlacklistGuestMii " ) ]
#[ doc(alias = " miiSelectorBlacklistGuestMii " ) ]
pub fn bla cklist_guest_mii ( & mut self , mii_index : Index ) {
pub fn blo cklist_guest_mii ( & mut self , mii_index : Index ) {
let index = match mii_index {
let index = match mii_index {
Index ::Index ( i ) = > i ,
Index ::Index ( i ) = > i ,
Index ::All = > ctru_sys ::MIISELECTOR_GUESTMII_SLOTS ,
Index ::All = > ctru_sys ::MIISELECTOR_GUESTMII_SLOTS ,
@ -194,7 +194,7 @@ impl MiiSelector {
unsafe { ctru_sys ::miiSelectorBlacklistGuestMii ( self . config . as_mut ( ) , index ) }
unsafe { ctru_sys ::miiSelectorBlacklistGuestMii ( self . config . as_mut ( ) , index ) }
}
}
/// White list a user-created Mii based on its index.
/// Allow list a user-created Mii based on its index.
///
///
/// # Example
/// # Example
///
///
@ -204,12 +204,12 @@ impl MiiSelector {
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// let mut mii_selector = MiiSelector::new();
/// let mut mii_selector = MiiSelector::new();
///
///
/// // White list the user-created Mii at index 0.
/// // Allow list the user-created Mii at index 0.
/// mii_selector.white list_user_mii(Index::Index(0));
/// mii_selector.allo wlist_user_mii(Index::Index(0));
/// # }
/// # }
/// ```
/// ```
#[ doc(alias = " miiSelectorWhitelistUserMii " ) ]
#[ doc(alias = " miiSelectorWhitelistUserMii " ) ]
pub fn white list_user_mii ( & mut self , mii_index : Index ) {
pub fn allo wlist_user_mii( & mut self , mii_index : Index ) {
let index = match mii_index {
let index = match mii_index {
Index ::Index ( i ) = > i ,
Index ::Index ( i ) = > i ,
Index ::All = > ctru_sys ::MIISELECTOR_USERMII_SLOTS ,
Index ::All = > ctru_sys ::MIISELECTOR_USERMII_SLOTS ,
@ -218,7 +218,7 @@ impl MiiSelector {
unsafe { ctru_sys ::miiSelectorWhitelistUserMii ( self . config . as_mut ( ) , index ) }
unsafe { ctru_sys ::miiSelectorWhitelistUserMii ( self . config . as_mut ( ) , index ) }
}
}
/// Bla cklist a user-created Mii based on its index.
/// Blo cklist a user-created Mii based on its index.
///
///
/// # Example
/// # Example
///
///
@ -228,12 +228,12 @@ impl MiiSelector {
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// use ctru::applets::mii_selector::{Index, MiiSelector};
/// let mut mii_selector = MiiSelector::new();
/// let mut mii_selector = MiiSelector::new();
///
///
/// // Bla cklist all user-created Miis so that they cannot be selected.
/// // Blo cklist all user-created Miis so that they cannot be selected.
/// mii_selector.bla cklist_user_mii(Index::All);
/// mii_selector.blo cklist_user_mii(Index::All);
/// # }
/// # }
/// ```
/// ```
#[ doc(alias = " miiSelectorBlacklistUserMii " ) ]
#[ doc(alias = " miiSelectorBlacklistUserMii " ) ]
pub fn bla cklist_user_mii ( & mut self , mii_index : Index ) {
pub fn blo cklist_user_mii ( & mut self , mii_index : Index ) {
let index = match mii_index {
let index = match mii_index {
Index ::Index ( i ) = > i ,
Index ::Index ( i ) = > i ,
Index ::All = > ctru_sys ::MIISELECTOR_USERMII_SLOTS ,
Index ::All = > ctru_sys ::MIISELECTOR_USERMII_SLOTS ,