Struct etwin_core::hammerfest::HammerfestForumThemeId
source · pub struct HammerfestForumThemeId(_);
Implementations§
source§impl HammerfestForumThemeId
impl HammerfestForumThemeId
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: u8) -> Result<Self, HammerfestForumThemeIdParseError>
pub fn new(id: u8) -> Result<Self, HammerfestForumThemeIdParseError>
Constructs a id with checks.
sourcepub const unsafe fn new_unchecked(id: u8) -> Self
pub const unsafe fn new_unchecked(id: u8) -> 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 HammerfestForumThemeId
impl Clone for HammerfestForumThemeId
source§fn clone(&self) -> HammerfestForumThemeId
fn clone(&self) -> HammerfestForumThemeId
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 HammerfestForumThemeId
impl Debug for HammerfestForumThemeId
source§impl Display for HammerfestForumThemeId
impl Display for HammerfestForumThemeId
source§impl FromStr for HammerfestForumThemeId
impl FromStr for HammerfestForumThemeId
source§impl Hash for HammerfestForumThemeId
impl Hash for HammerfestForumThemeId
source§impl Ord for HammerfestForumThemeId
impl Ord for HammerfestForumThemeId
source§fn cmp(&self, other: &HammerfestForumThemeId) -> Ordering
fn cmp(&self, other: &HammerfestForumThemeId) -> 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<HammerfestForumThemeId> for HammerfestForumThemeId
impl PartialEq<HammerfestForumThemeId> for HammerfestForumThemeId
source§fn eq(&self, other: &HammerfestForumThemeId) -> bool
fn eq(&self, other: &HammerfestForumThemeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HammerfestForumThemeId> for HammerfestForumThemeId
impl PartialOrd<HammerfestForumThemeId> for HammerfestForumThemeId
source§fn partial_cmp(&self, other: &HammerfestForumThemeId) -> Option<Ordering>
fn partial_cmp(&self, other: &HammerfestForumThemeId) -> 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