pub enum Variant {
T4,
D4,
T5,
D5,
}Expand description
A game variant: line length (4 or 5) and touch rule (Touching / Disjoint).
Serialised as its two-character code, digit first: "5T", "5D", "4T",
"4D" — the convention shared with the wider Morpion Solitaire community.
Variants§
T4
4 in a line, touching (parallel lines may share one endpoint).
D4
4 in a line, disjoint (parallel lines must be strictly separate).
T5
5 in a line, touching — the classic variant; world record 178.
D5
5 in a line, disjoint.
Implementations§
Trait Implementations§
impl Copy for Variant
Source§impl<'de> Deserialize<'de> for Variant
impl<'de> Deserialize<'de> for Variant
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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