pub trait Header {
// Required methods
fn file(&self) -> &'static str;
fn needed(&self, rawast: &RawAst) -> bool;
fn guard(&self) -> &'static str;
fn constants(&self, out: &mut String, tenv: &TyEnv, consts: &[&Const]);
// Provided methods
fn preamble(&self, _out: &mut String) { ... }
fn structure(&self, _out: &mut String, _tenv: &TyEnv, _s: &Struct) { ... }
}Expand description
One foreign language’s data-layer header.