Enum esl::BodyPartType
source · #[repr(u8)]pub enum BodyPartType {
Skin = 0,
Clothing = 1,
Armor = 2,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for BodyPartType
impl Clone for BodyPartType
source§fn clone(&self) -> BodyPartType
fn clone(&self) -> BodyPartType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BodyPartType
impl Debug for BodyPartType
source§impl<'de> Deserialize<'de> for BodyPartType
impl<'de> Deserialize<'de> for BodyPartType
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for BodyPartType
impl Hash for BodyPartType
source§impl Ord for BodyPartType
impl Ord for BodyPartType
source§fn cmp(&self, other: &BodyPartType) -> Ordering
fn cmp(&self, other: &BodyPartType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BodyPartType
impl PartialEq for BodyPartType
source§fn eq(&self, other: &BodyPartType) -> bool
fn eq(&self, other: &BodyPartType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BodyPartType
impl PartialOrd for BodyPartType
source§fn partial_cmp(&self, other: &BodyPartType) -> Option<Ordering>
fn partial_cmp(&self, other: &BodyPartType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for BodyPartType
impl Serialize for BodyPartType
source§impl Display for BodyPartType
impl Display for BodyPartType
source§fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
Formats the value using the given formatter. Read more
source§impl FromStr for BodyPartType
impl FromStr for BodyPartType
impl Copy for BodyPartType
impl Eq for BodyPartType
impl StructuralEq for BodyPartType
impl StructuralPartialEq for BodyPartType
Auto Trait Implementations§
impl RefUnwindSafe for BodyPartType
impl Send for BodyPartType
impl Sync for BodyPartType
impl Unpin for BodyPartType
impl UnwindSafe for BodyPartType
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