Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comments

  1. The serde_yaml crate is the best tool for parsing YAML in Rust.

sccache: true
{"x": 1.0, "y": NaN}

Serialize the above BTreeMap to a YAML string.

---
x: 1.0
y: .nan

Deserialize the above string back to a Rust type.

{"x": 1.0, "y": NaN}
_11_highcard:
-   - 9d
    - 8d Ah 3c 2s 7h
    - 2c Kc Qc Jc Tc
    - .nan
-   - 2j
    - 8d Qs 3c 2s 7h
    - 2c Kc Qc Jc Tc
    - .nan
_11_other:
-   - Ac
    - 6d 5c 3c 2s 3j
    - Qc Jh Td 9d 2j
    - .nan
-   - 2j
    - 8d 6h 5c 4s 7h
    - 2c Kc Qc Jc Tc
    - .nan
_11_pair:
-   - Ac
    - Td 5c 3c 2s Th
    - Qc Jh Ts 9d 2j
    - .nan
-   - Ac
    - 5d 5c 3c 2s Th
    - Qc Jh Ts 9d 2j
    - .nan
{"_11_highcard": [("9d", "8d Ah 3c 2s 7h", "2c Kc Qc Jc Tc", NaN), ("2j", "8d Qs 3c 2s 7h", "2c Kc Qc Jc Tc", NaN)], "_11_other": [("Ac", "6d 5c 3c 2s 3j", "Qc Jh Td 9d 2j", NaN), ("2j", "8d 6h 5c 4s 7h", "2c Kc Qc Jc Tc", NaN)], "_11_pair": [("Ac", "Td 5c 3c 2s Th", "Qc Jh Ts 9d 2j", NaN), ("Ac", "5d 5c 3c 2s Th", "Qc Jh Ts 9d 2j", NaN)]}
---
_11_highcard:
  - - 9d
    - 8d Ah 3c 2s 7h
    - 2c Kc Qc Jc Tc
    - .nan
  - - 2j
    - 8d Qs 3c 2s 7h
    - 2c Kc Qc Jc Tc
    - .nan
_11_other:
  - - Ac
    - 6d 5c 3c 2s 3j
    - Qc Jh Td 9d 2j
    - .nan
  - - 2j
    - 8d 6h 5c 4s 7h
    - 2c Kc Qc Jc Tc
    - .nan
_11_pair:
  - - Ac
    - Td 5c 3c 2s Th
    - Qc Jh Ts 9d 2j
    - .nan
  - - Ac
    - 5d 5c 3c 2s Th
    - Qc Jh Ts 9d 2j
    - .nan

References