gerber-types 0.7.0

Types and code generation for Gerber files (RS-274X).
Documentation
1
2
3
4
5
6
7
8
9
10
11
macro_rules! impl_partial_gerber_code_via_strum {
    ($name:ident) => {
        impl<W: Write> PartialGerberCode<W> for $name {
            fn serialize_partial(&self, writer: &mut W) -> GerberResult<()> {
                let value: &'static str = self.into();
                write!(writer, "{}", value)?;
                Ok(())
            }
        }
    };
}