pub struct TrickCount(/* private fields */);Expand description
A number of tricks in 0..=13
A validated newtype over u8, analogous to Level
(1..=7) and Rank (2..=14). Appears as the per-seat
value returned by TrickCountRow::get.
Implementations§
Trait Implementations§
Source§impl Clone for TrickCount
impl Clone for TrickCount
Source§fn clone(&self) -> TrickCount
fn clone(&self) -> TrickCount
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 TrickCount
impl Debug for TrickCount
Source§impl Display for TrickCount
impl Display for TrickCount
Source§impl From<TrickCount> for u8
impl From<TrickCount> for u8
Source§fn from(tc: TrickCount) -> Self
fn from(tc: TrickCount) -> Self
Converts to this type from the input type.
Source§impl From<TrickCount> for usize
impl From<TrickCount> for usize
Source§fn from(tc: TrickCount) -> Self
fn from(tc: TrickCount) -> Self
Converts to this type from the input type.
Source§impl Hash for TrickCount
impl Hash for TrickCount
Source§impl Ord for TrickCount
impl Ord for TrickCount
Source§fn cmp(&self, other: &TrickCount) -> Ordering
fn cmp(&self, other: &TrickCount) -> 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 for TrickCount
impl PartialEq for TrickCount
Source§impl PartialOrd for TrickCount
impl PartialOrd for TrickCount
impl Copy for TrickCount
impl Eq for TrickCount
impl StructuralPartialEq for TrickCount
Auto Trait Implementations§
impl Freeze for TrickCount
impl RefUnwindSafe for TrickCount
impl Send for TrickCount
impl Sync for TrickCount
impl Unpin for TrickCount
impl UnsafeUnpin for TrickCount
impl UnwindSafe for TrickCount
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