Struct etwin_core::dinoparc::DinoparcSkillLevel
source · pub struct DinoparcSkillLevel(_);
Implementations§
source§impl DinoparcSkillLevel
impl DinoparcSkillLevel
sourcepub fn new(n: u8) -> Result<Self, DinoparcSkillLevelRangeError>
pub fn new(n: u8) -> Result<Self, DinoparcSkillLevelRangeError>
Constructs the integer if the given value matches the bounds
sourcepub const unsafe fn new_unchecked(n: u8) -> Self
pub const unsafe fn new_unchecked(n: u8) -> Self
Constructs the value without checking its bounds
Safety
The caller must ensure that the argument is contained in the bounds.
sourcepub fn from_u64(n: u64) -> Result<Self, DinoparcSkillLevelRangeError>
pub fn from_u64(n: u64) -> Result<Self, DinoparcSkillLevelRangeError>
Constructs the integer from an u64 if the given value matches the bounds
sourcepub fn from_i64(n: i64) -> Result<Self, DinoparcSkillLevelRangeError>
pub fn from_i64(n: i64) -> Result<Self, DinoparcSkillLevelRangeError>
Constructs the integer from an i64 if the given value matches the bounds
Trait Implementations§
source§impl Clone for DinoparcSkillLevel
impl Clone for DinoparcSkillLevel
source§fn clone(&self) -> DinoparcSkillLevel
fn clone(&self) -> DinoparcSkillLevel
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 DinoparcSkillLevel
impl Debug for DinoparcSkillLevel
source§impl Display for DinoparcSkillLevel
impl Display for DinoparcSkillLevel
source§impl Hash for DinoparcSkillLevel
impl Hash for DinoparcSkillLevel
source§impl Ord for DinoparcSkillLevel
impl Ord for DinoparcSkillLevel
source§fn cmp(&self, other: &DinoparcSkillLevel) -> Ordering
fn cmp(&self, other: &DinoparcSkillLevel) -> 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<DinoparcSkillLevel> for DinoparcSkillLevel
impl PartialEq<DinoparcSkillLevel> for DinoparcSkillLevel
source§fn eq(&self, other: &DinoparcSkillLevel) -> bool
fn eq(&self, other: &DinoparcSkillLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DinoparcSkillLevel> for DinoparcSkillLevel
impl PartialOrd<DinoparcSkillLevel> for DinoparcSkillLevel
source§fn partial_cmp(&self, other: &DinoparcSkillLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &DinoparcSkillLevel) -> 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 more