Struct ctru::mii::Mii

source ·
pub struct Mii {
Show 20 fields pub options: Options, pub selector_position: SelectorPosition, pub console_identity: ConsoleIdentity, pub system_id: [u8; 8], pub mac_address: [u8; 6], pub details: Details, pub name: String, pub height: u8, pub width: u8, pub face_details: FaceDetails, pub hair_details: HairDetails, pub eye_details: EyeDetails, pub eyebrow_details: EyebrowDetails, pub nose_details: NoseDetails, pub mouth_details: MouthDetails, pub mustache_details: MustacheDetails, pub beard_details: BeardDetails, pub glass_details: GlassesDetails, pub mole_details: MoleDetails, pub author_name: String,
}
Expand description

Full Mii data representation.

Some values are not ordered like the Mii Editor UI. The mapped values can be seen here.

This struct can be retrieved by MiiSelector::launch().

Fields§

§options: Options

Mii options.

§selector_position: SelectorPosition

Position taken by the Mii on the Mii Selector screen.

§console_identity: ConsoleIdentity

Console the Mii was created on.

§system_id: [u8; 8]

Unique system ID, not dependant on the MAC address

§mac_address: [u8; 6]

Console’s MAC address.

§details: Details

General information about the Mii.

§name: String

Mii name.

§height: u8

Mii height.

§width: u8

Mii width.

§face_details: FaceDetails

Face details.

§hair_details: HairDetails

Hair details.

§eye_details: EyeDetails

Eyes details.

§eyebrow_details: EyebrowDetails

Eyebrow details.

§nose_details: NoseDetails

Nose details.

§mouth_details: MouthDetails

Mouth details.

§mustache_details: MustacheDetails

Mustache details.

§beard_details: BeardDetails

Beard details.

§glass_details: GlassesDetails

Glasses details.

§mole_details: MoleDetails

Mole details.

§author_name: String

Name of the Mii’s original author.

Trait Implementations§

source§

impl Clone for Mii

source§

fn clone(&self) -> Mii

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Mii

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<MiiData> for Mii

source§

fn from(mii_data: MiiData) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for Mii

§

impl Send for Mii

§

impl Sync for Mii

§

impl Unpin for Mii

§

impl UnwindSafe for Mii

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.