Struct etwin_core::popotamo::PopotamoUserSkill
source · pub struct PopotamoUserSkill(_);
Implementations§
source§impl PopotamoUserSkill
impl PopotamoUserSkill
sourcepub fn with_str<T>(self, f: impl FnOnce(&str) -> T) -> T
pub fn with_str<T>(self, f: impl FnOnce(&str) -> T) -> T
Calls f
with the string representation of this id as an argument.
sourcepub fn new(id: u32) -> Result<Self, PopotamoUserSkillParseError>
pub fn new(id: u32) -> Result<Self, PopotamoUserSkillParseError>
Constructs a id with checks.
sourcepub const unsafe fn new_unchecked(id: u32) -> Self
pub const unsafe fn new_unchecked(id: u32) -> Self
Constructs a id without checking bounds
Safety
The caller must ensure that the argument is contained in the bounds.
Trait Implementations§
source§impl Clone for PopotamoUserSkill
impl Clone for PopotamoUserSkill
source§fn clone(&self) -> PopotamoUserSkill
fn clone(&self) -> PopotamoUserSkill
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 PopotamoUserSkill
impl Debug for PopotamoUserSkill
source§impl Display for PopotamoUserSkill
impl Display for PopotamoUserSkill
source§impl FromStr for PopotamoUserSkill
impl FromStr for PopotamoUserSkill
source§impl Hash for PopotamoUserSkill
impl Hash for PopotamoUserSkill
source§impl Ord for PopotamoUserSkill
impl Ord for PopotamoUserSkill
source§fn cmp(&self, other: &PopotamoUserSkill) -> Ordering
fn cmp(&self, other: &PopotamoUserSkill) -> 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<PopotamoUserSkill> for PopotamoUserSkill
impl PartialEq<PopotamoUserSkill> for PopotamoUserSkill
source§fn eq(&self, other: &PopotamoUserSkill) -> bool
fn eq(&self, other: &PopotamoUserSkill) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PopotamoUserSkill> for PopotamoUserSkill
impl PartialOrd<PopotamoUserSkill> for PopotamoUserSkill
source§fn partial_cmp(&self, other: &PopotamoUserSkill) -> Option<Ordering>
fn partial_cmp(&self, other: &PopotamoUserSkill) -> 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