proffer/traits.rs
1//!
2//! Trait(s) specific to code generation objects within this crate.
3//!
4
5/// Trait implemented for elements representing the ability to render as
6/// raw source code.
7pub trait SrcCode {
8 /// Given current configuration, give the resulting source code.
9 fn generate(&self) -> String;
10}