21 lines
493 B
Rust
21 lines
493 B
Rust
use std::collections::HashSet;
|
|
use std::default::Default;
|
|
use std::ops::Deref;
|
|
|
|
use t4rust_derive::Template;
|
|
use tsproto_structs::book::*;
|
|
|
|
#[derive(Template)]
|
|
#[TemplatePath = "build/Events.tt"]
|
|
#[derive(Debug)]
|
|
pub struct EventDeclarations<'a>(&'a BookDeclarations);
|
|
|
|
impl<'a> Deref for EventDeclarations<'a> {
|
|
type Target = BookDeclarations;
|
|
fn deref(&self) -> &Self::Target { self.0 }
|
|
}
|
|
|
|
impl Default for EventDeclarations<'static> {
|
|
fn default() -> Self { EventDeclarations(&DATA) }
|
|
}
|