pub struct PowerUpCount(/* private fields */);Expand description
Represents the power up count.
Implementations§
Source§impl PowerUpCount
impl PowerUpCount
Sourcepub const fn new() -> PowerUpCount
pub const fn new() -> PowerUpCount
Creates a new PowerUpCount.
Sourcepub const fn create(val: u32) -> PowerUpCount
pub const fn create(val: u32) -> PowerUpCount
Creates a new PowerUpCount from the provided parameter.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of PowerUpCount.
Trait Implementations§
Source§impl Clone for PowerUpCount
impl Clone for PowerUpCount
Source§fn clone(&self) -> PowerUpCount
fn clone(&self) -> PowerUpCount
Returns a duplicate 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 PowerUpCount
impl Debug for PowerUpCount
Source§impl Default for PowerUpCount
impl Default for PowerUpCount
Source§fn default() -> PowerUpCount
fn default() -> PowerUpCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PowerUpCount
impl<'de> Deserialize<'de> for PowerUpCount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PowerUpCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PowerUpCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PowerUpCount
impl Display for PowerUpCount
Source§impl From<&PowerUpCount> for XfsMember
impl From<&PowerUpCount> for XfsMember
Source§fn from(val: &PowerUpCount) -> XfsMember
fn from(val: &PowerUpCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<&PowerUpCount> for XfsValue
impl From<&PowerUpCount> for XfsValue
Source§fn from(val: &PowerUpCount) -> XfsValue
fn from(val: &PowerUpCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for PowerUpCount
impl From<&i32> for PowerUpCount
Source§fn from(val: &i32) -> PowerUpCount
fn from(val: &i32) -> PowerUpCount
Converts to this type from the input type.
Source§impl From<&u32> for PowerUpCount
impl From<&u32> for PowerUpCount
Source§fn from(val: &u32) -> PowerUpCount
fn from(val: &u32) -> PowerUpCount
Converts to this type from the input type.
Source§impl From<PowerUpCount> for XfsMember
impl From<PowerUpCount> for XfsMember
Source§fn from(val: PowerUpCount) -> XfsMember
fn from(val: PowerUpCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<PowerUpCount> for XfsValue
impl From<PowerUpCount> for XfsValue
Source§fn from(val: PowerUpCount) -> XfsValue
fn from(val: PowerUpCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for PowerUpCount
impl From<i32> for PowerUpCount
Source§fn from(val: i32) -> PowerUpCount
fn from(val: i32) -> PowerUpCount
Converts to this type from the input type.
Source§impl From<u32> for PowerUpCount
impl From<u32> for PowerUpCount
Source§fn from(val: u32) -> PowerUpCount
fn from(val: u32) -> PowerUpCount
Converts to this type from the input type.
Source§impl PartialEq for PowerUpCount
impl PartialEq for PowerUpCount
Source§impl Serialize for PowerUpCount
impl Serialize for PowerUpCount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&XfsMember> for PowerUpCount
impl TryFrom<&XfsMember> for PowerUpCount
Source§impl TryFrom<&XfsValue> for PowerUpCount
impl TryFrom<&XfsValue> for PowerUpCount
Source§impl TryFrom<XfsMember> for PowerUpCount
impl TryFrom<XfsMember> for PowerUpCount
Source§impl TryFrom<XfsValue> for PowerUpCount
impl TryFrom<XfsValue> for PowerUpCount
impl Copy for PowerUpCount
impl Eq for PowerUpCount
impl StructuralPartialEq for PowerUpCount
Auto Trait Implementations§
impl Freeze for PowerUpCount
impl RefUnwindSafe for PowerUpCount
impl Send for PowerUpCount
impl Sync for PowerUpCount
impl Unpin for PowerUpCount
impl UnwindSafe for PowerUpCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more