Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{error::Error, fs::File};

use arinc::a665::LUH;

fn main() -> Result<(), Box<dyn Error>> {
    let f = File::open("example.yaml")?;
    let luh: LUH = serde_yaml::from_reader(f)?;
    let output = File::create("output.arinc")?;
    luh.to_writer(output);
    println!("Item: {:?}", &luh);
    Ok(())
}