pub struct Reserves<const N: usize> {
pub stones: u8,
pub caps: u8,
}
Fields§
§stones: u8
§caps: u8
Implementations§
Trait Implementations§
Source§impl<const N: usize> Ord for Reserves<N>
impl<const N: usize> Ord for Reserves<N>
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<const N: usize> PartialOrd for Reserves<N>
impl<const N: usize> PartialOrd for Reserves<N>
impl<const N: usize> Copy for Reserves<N>
impl<const N: usize> Eq for Reserves<N>
impl<const N: usize> StructuralPartialEq for Reserves<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Reserves<N>
impl<const N: usize> RefUnwindSafe for Reserves<N>
impl<const N: usize> Send for Reserves<N>
impl<const N: usize> Sync for Reserves<N>
impl<const N: usize> Unpin for Reserves<N>
impl<const N: usize> UnwindSafe for Reserves<N>
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