pub enum PlayerCount {
Players(u64),
PlayersOrAbove(u64),
}Expand description
A number of players for the purpose of voting on what the best player count for a game may be.
Can be either an exact number of players or a number or above. Voting options typically contain from 1 all the way to the max player count, and then an option for max player count or above.
Variants§
Trait Implementations§
Source§impl Clone for PlayerCount
impl Clone for PlayerCount
Source§fn clone(&self) -> PlayerCount
fn clone(&self) -> PlayerCount
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 PlayerCount
impl Debug for PlayerCount
Source§impl<'de> Deserialize<'de> for PlayerCount
impl<'de> Deserialize<'de> for PlayerCount
Source§fn deserialize<D>(deserializer: D) -> Result<PlayerCount, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PlayerCount, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for PlayerCount
impl Ord for PlayerCount
Source§fn cmp(&self, other: &PlayerCount) -> Ordering
fn cmp(&self, other: &PlayerCount) -> 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 PlayerCount
impl PartialEq for PlayerCount
Source§impl PartialOrd for PlayerCount
impl PartialOrd for PlayerCount
impl Eq for PlayerCount
impl StructuralPartialEq for PlayerCount
Auto Trait Implementations§
impl Freeze for PlayerCount
impl RefUnwindSafe for PlayerCount
impl Send for PlayerCount
impl Sync for PlayerCount
impl Unpin for PlayerCount
impl UnwindSafe for PlayerCount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.