Enum dofus_protocol::game::common::MountCharacteristic
source · #[repr(i32)]pub enum MountCharacteristic {
Energy = 0,
Serenity = 1,
Stamina = 2,
Love = 3,
Maturity = 4,
Tiredness = 5,
Carrier = 6,
Fertile = 7,
Pregnant = 8,
}
Variants§
Energy = 0
Serenity = 1
Stamina = 2
Love = 3
Maturity = 4
Tiredness = 5
Carrier = 6
Fertile = 7
Pregnant = 8
Implementations§
source§impl MountCharacteristic
impl MountCharacteristic
sourcepub fn from_i32(value: i32) -> Option<MountCharacteristic>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MountCharacteristic>
Converts an i32
to a MountCharacteristic
, or None
if value
is not a valid variant.
source§impl MountCharacteristic
impl MountCharacteristic
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MountCharacteristic
impl Clone for MountCharacteristic
source§fn clone(&self) -> MountCharacteristic
fn clone(&self) -> MountCharacteristic
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 MountCharacteristic
impl Debug for MountCharacteristic
source§impl Default for MountCharacteristic
impl Default for MountCharacteristic
source§fn default() -> MountCharacteristic
fn default() -> MountCharacteristic
Returns the “default value” for a type. Read more
source§impl From<MountCharacteristic> for i32
impl From<MountCharacteristic> for i32
source§fn from(value: MountCharacteristic) -> i32
fn from(value: MountCharacteristic) -> i32
Converts to this type from the input type.
source§impl Hash for MountCharacteristic
impl Hash for MountCharacteristic
source§impl Ord for MountCharacteristic
impl Ord for MountCharacteristic
source§fn cmp(&self, other: &MountCharacteristic) -> Ordering
fn cmp(&self, other: &MountCharacteristic) -> 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 MountCharacteristic
impl PartialEq for MountCharacteristic
source§impl PartialOrd for MountCharacteristic
impl PartialOrd for MountCharacteristic
source§impl TryFrom<i32> for MountCharacteristic
impl TryFrom<i32> for MountCharacteristic
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<MountCharacteristic, UnknownEnumValue>
fn try_from(value: i32) -> Result<MountCharacteristic, UnknownEnumValue>
Performs the conversion.
impl Copy for MountCharacteristic
impl Eq for MountCharacteristic
impl StructuralPartialEq for MountCharacteristic
Auto Trait Implementations§
impl Freeze for MountCharacteristic
impl RefUnwindSafe for MountCharacteristic
impl Send for MountCharacteristic
impl Sync for MountCharacteristic
impl Unpin for MountCharacteristic
impl UnwindSafe for MountCharacteristic
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)