#[non_exhaustive]pub enum Shutout {
Double,
Flat(u16),
}Expand description
What happens to the winner’s total when the loser scored nothing
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Double
The winner’s final total is doubled (modern schools)
Flat(u16)
A flat bonus is added, e.g. 100 in the classic rules — Flat(0)
disables the shutout rule entirely
Trait Implementations§
impl Copy for Shutout
Source§impl<'de> Deserialize<'de> for Shutout
impl<'de> Deserialize<'de> for Shutout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Shutout
impl StructuralPartialEq for Shutout
Auto Trait Implementations§
impl Freeze for Shutout
impl RefUnwindSafe for Shutout
impl Send for Shutout
impl Sync for Shutout
impl Unpin for Shutout
impl UnsafeUnpin for Shutout
impl UnwindSafe for Shutout
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