Struct etwin_core::popotamo::PopotamoUserRank
source · pub struct PopotamoUserRank(_);
Implementations§
source§impl PopotamoUserRank
impl PopotamoUserRank
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, PopotamoUserRankParseError>
pub fn new(id: u32) -> Result<Self, PopotamoUserRankParseError>
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 PopotamoUserRank
impl Clone for PopotamoUserRank
source§fn clone(&self) -> PopotamoUserRank
fn clone(&self) -> PopotamoUserRank
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 PopotamoUserRank
impl Debug for PopotamoUserRank
source§impl Display for PopotamoUserRank
impl Display for PopotamoUserRank
source§impl FromStr for PopotamoUserRank
impl FromStr for PopotamoUserRank
source§impl Hash for PopotamoUserRank
impl Hash for PopotamoUserRank
source§impl Ord for PopotamoUserRank
impl Ord for PopotamoUserRank
source§fn cmp(&self, other: &PopotamoUserRank) -> Ordering
fn cmp(&self, other: &PopotamoUserRank) -> 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<PopotamoUserRank> for PopotamoUserRank
impl PartialEq<PopotamoUserRank> for PopotamoUserRank
source§fn eq(&self, other: &PopotamoUserRank) -> bool
fn eq(&self, other: &PopotamoUserRank) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PopotamoUserRank> for PopotamoUserRank
impl PartialOrd<PopotamoUserRank> for PopotamoUserRank
source§fn partial_cmp(&self, other: &PopotamoUserRank) -> Option<Ordering>
fn partial_cmp(&self, other: &PopotamoUserRank) -> 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