[][src]Module ca_formats::apgcode

A parser for apgcode format.

Rules with more than 2 states are not supported.

Patterns that are not encodable in extended Wechsler format are not supported.

Example

use ca_formats::apgcode::ApgCode;

const GLIDER: &str = "xq4_153";
let mut glider = ApgCode::new(GLIDER).unwrap().collect::<Result<Vec<_>, _>>().unwrap();
assert_eq!(glider, vec![(0, 0), (1, 0), (1, 2), (2, 0), (2, 1)]);

Structs

ApgCode

An iterator of coordinates of living cells. Returns by parsing an apgcode.