fixcol 0.2.0

A library for reading and writing fixed width / column delimited data files.
Documentation
use fixcol::ReadFixed;

#[derive(ReadFixed)]
struct Point {
    #[fixcol(width = 5)]
    point_x: u16,
    #[fixcol(width = 5)]
    point_y: u16,
}

#[derive(ReadFixed)]
#[fixcol(key_width = 1)]
enum Alg {
    #[fixcol(key = "N")]
    Num(#[fixcol(width = 5)] u16),
    #[fixcol(key = "P", embed = true)]
    Point(#[fixcol(width = 5)] Point),
    #[fixcol(key = "Z")]
    Zero,
}

pub fn main() {}