Module inanis::state::text

source ·

Modules

Functions

  • Converts piece into the corresponding character (p/P, n/N, b/B, r/R, q/Q, k/K). Returns Err with the proper error message when the piece is unknown.
  • Converts piece symbol (p/P, n/N, b/B, r/R, q/Q, k/K) into the corresponding u8 value. Returns Err with the proper error messages when the symbol is unknown.