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