Enum dofus_protocol::game::treasure::hunt::TreasureHuntType
source · #[repr(i32)]pub enum TreasureHuntType {
Classic = 0,
Portal = 1,
Legendary = 2,
}Variants§
Implementations§
source§impl TreasureHuntType
impl TreasureHuntType
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 TreasureHuntType
impl Clone for TreasureHuntType
source§fn clone(&self) -> TreasureHuntType
fn clone(&self) -> TreasureHuntType
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 TreasureHuntType
impl Debug for TreasureHuntType
source§impl Default for TreasureHuntType
impl Default for TreasureHuntType
source§fn default() -> TreasureHuntType
fn default() -> TreasureHuntType
Returns the “default value” for a type. Read more
source§impl From<TreasureHuntType> for i32
impl From<TreasureHuntType> for i32
source§fn from(value: TreasureHuntType) -> i32
fn from(value: TreasureHuntType) -> i32
Converts to this type from the input type.
source§impl Hash for TreasureHuntType
impl Hash for TreasureHuntType
source§impl Ord for TreasureHuntType
impl Ord for TreasureHuntType
source§fn cmp(&self, other: &TreasureHuntType) -> Ordering
fn cmp(&self, other: &TreasureHuntType) -> 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 TreasureHuntType
impl PartialEq for TreasureHuntType
source§impl PartialOrd for TreasureHuntType
impl PartialOrd for TreasureHuntType
source§impl TryFrom<i32> for TreasureHuntType
impl TryFrom<i32> for TreasureHuntType
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<TreasureHuntType, UnknownEnumValue>
fn try_from(value: i32) -> Result<TreasureHuntType, UnknownEnumValue>
Performs the conversion.
impl Copy for TreasureHuntType
impl Eq for TreasureHuntType
impl StructuralPartialEq for TreasureHuntType
Auto Trait Implementations§
impl Freeze for TreasureHuntType
impl RefUnwindSafe for TreasureHuntType
impl Send for TreasureHuntType
impl Sync for TreasureHuntType
impl Unpin for TreasureHuntType
impl UnwindSafe for TreasureHuntType
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)