1
 2
 3
 4
 5
 6
 7
 8
 9
10
//!
//! Trait(s) specific to code generation objects within this crate.
//!

/// Trait implemented for elements representing the ability to render as
/// raw source code.
pub trait SrcCode {
    /// Given current configuration, give the resulting source code.
    fn generate(&self) -> String;
}