Enum HumanoidPart
#[non_exhaustive]pub enum HumanoidPart {
Head,
Hat,
Body,
Jacket,
RightArm,
RightSleeve,
LeftArm,
LeftSleeve,
RightLeg,
RightPants,
LeftLeg,
LeftPants,
}Expand description
A part of a humanoid model, by the name vanilla’s PlayerModel gives it. The outer skin
layer’s parts (Hat, Jacket, the sleeves and the pants) are children of the part they cover.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Head
The head.
Hat
The hat layer, over the head.
Body
The body.
Jacket
The jacket layer, over the body.
RightArm
The right arm.
RightSleeve
The right sleeve, over the right arm.
LeftArm
The left arm.
LeftSleeve
The left sleeve, over the left arm.
RightLeg
The right leg.
RightPants
The right trouser leg, over the right leg.
LeftLeg
The left leg.
LeftPants
The left trouser leg, over the left leg.
Implementations§
§impl HumanoidPart
impl HumanoidPart
pub const ALL: [HumanoidPart; 12]
pub const ALL: [HumanoidPart; 12]
Every part, parents before their children.
pub fn model_name(self) -> &'static str
pub fn model_name(self) -> &'static str
Its name in the model (right_sleeve).
Trait Implementations§
§impl Clone for HumanoidPart
impl Clone for HumanoidPart
§fn clone(&self) -> HumanoidPart
fn clone(&self) -> HumanoidPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HumanoidPart
§impl Debug for HumanoidPart
impl Debug for HumanoidPart
impl Eq for HumanoidPart
§impl Hash for HumanoidPart
impl Hash for HumanoidPart
§impl PartialEq for HumanoidPart
impl PartialEq for HumanoidPart
impl StructuralPartialEq for HumanoidPart
Auto Trait Implementations§
impl Freeze for HumanoidPart
impl RefUnwindSafe for HumanoidPart
impl Send for HumanoidPart
impl Sync for HumanoidPart
impl Unpin for HumanoidPart
impl UnsafeUnpin for HumanoidPart
impl UnwindSafe for HumanoidPart
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