Skip to main content

MAX_POLYTYPE_LAYERS

Constant MAX_POLYTYPE_LAYERS 

Source
pub const MAX_POLYTYPE_LAYERS: usize = 64;
Expand description

Longest stacking Lattice::polytype accepts. The orthohexagonal cell has 4n sites, and Candidate::basis is a u8, so n = 64 (256 sites) is the largest period whose site indices do not alias.