Enum dofus_protocol::game::cosmetic::ObjectSlot
source · #[repr(i32)]pub enum ObjectSlot {
Show 26 variants
Amulet = 0,
RingLeft = 1,
RingRight = 2,
Belt = 3,
Boots = 4,
Petmount = 5,
Dragoturkey = 6,
Rhineetle = 7,
Seemyool = 8,
Cape = 9,
Hat = 10,
Pet = 11,
Shield = 12,
Bow = 13,
Wand = 14,
Staff = 15,
Dagger = 16,
Scythe = 17,
Axe = 18,
Lance = 19,
Hammer = 20,
Shovel = 21,
Sword = 22,
Disguise = 23,
Wings = 24,
Shoulders = 25,
}
Variants§
Amulet = 0
RingLeft = 1
RingRight = 2
Belt = 3
Boots = 4
Petmount = 5
Dragoturkey = 6
Rhineetle = 7
Seemyool = 8
Cape = 9
Hat = 10
Pet = 11
Shield = 12
Bow = 13
Wand = 14
Staff = 15
Dagger = 16
Scythe = 17
Axe = 18
Lance = 19
Hammer = 20
Shovel = 21
Sword = 22
Disguise = 23
Wings = 24
Shoulders = 25
Implementations§
source§impl ObjectSlot
impl ObjectSlot
source§impl ObjectSlot
impl ObjectSlot
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 ObjectSlot
impl Clone for ObjectSlot
source§fn clone(&self) -> ObjectSlot
fn clone(&self) -> ObjectSlot
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 ObjectSlot
impl Debug for ObjectSlot
source§impl Default for ObjectSlot
impl Default for ObjectSlot
source§fn default() -> ObjectSlot
fn default() -> ObjectSlot
Returns the “default value” for a type. Read more
source§impl From<ObjectSlot> for i32
impl From<ObjectSlot> for i32
source§fn from(value: ObjectSlot) -> i32
fn from(value: ObjectSlot) -> i32
Converts to this type from the input type.
source§impl Hash for ObjectSlot
impl Hash for ObjectSlot
source§impl Ord for ObjectSlot
impl Ord for ObjectSlot
source§fn cmp(&self, other: &ObjectSlot) -> Ordering
fn cmp(&self, other: &ObjectSlot) -> 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 ObjectSlot
impl PartialEq for ObjectSlot
source§impl PartialOrd for ObjectSlot
impl PartialOrd for ObjectSlot
source§impl TryFrom<i32> for ObjectSlot
impl TryFrom<i32> for ObjectSlot
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ObjectSlot, UnknownEnumValue>
fn try_from(value: i32) -> Result<ObjectSlot, UnknownEnumValue>
Performs the conversion.
impl Copy for ObjectSlot
impl Eq for ObjectSlot
impl StructuralPartialEq for ObjectSlot
Auto Trait Implementations§
impl Freeze for ObjectSlot
impl RefUnwindSafe for ObjectSlot
impl Send for ObjectSlot
impl Sync for ObjectSlot
impl Unpin for ObjectSlot
impl UnwindSafe for ObjectSlot
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
)