igc 0.2.2

A fast, minimal parser for IGC flight recorder files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt;

pub struct DisplayOption<T: fmt::Display>(pub Option<T>);

impl<T: fmt::Display> fmt::Display for DisplayOption<T> {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match &self.0 {
            Some(x) => write!(f, "{}", x),
            None => Ok(()),
        }
    }
}