init
This commit is contained in:
247 files changed
+35538
No files matched your search
@@ -0,0 +1,20 @@
|
||||
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) }
|
||||
}
|
||||
Reference in new issue
Block a user