metro_2 v0.1.1 API Reference

Modules

This module contains all the elementar parts of the metro2 generation, like:

  • Maps wich translates the humanized states into metro2 conform codes
  • Regular expressions for valid numerics and alphanumerics
  • Functions which are converting datatypes in to a metro2 compatible format

This module defines all the field structs, which can be part of the segments. Further it contains methods to get or set values in the field stucts, which are abracting the access to the diskrete values

This module defines the initial struct of the the metro2 file struct, further it contains the serialisation method, wich ultimately returns a string containing the struct as valid metro2 file content

This module defines the initial struct for a base segment

This module defines the initial struct for a header segment

This module defines the initial struct for a tailer segment. This segment will updated based on the information of the other segments

This module defines the to_metro method for header-, base- and tailer-segment