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