pub struct Asset {
pub amount: i64,
}Fields§
§amount: i64Implementations§
Source§impl Asset
impl Asset
pub const fn new(amount: i64) -> Asset
pub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_mul(self, other: Self) -> Option<Self>
pub fn checked_div(self, other: Self) -> Option<Self>
pub fn checked_pow(self, num: u16) -> Option<Self>
Trait Implementations§
Source§impl PartialOrd for Asset
impl PartialOrd for Asset
impl Copy for Asset
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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