summaryrefslogtreecommitdiff
path: root/src/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.rs')
-rw-r--r--src/context.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs
index 8b13789..bcc0b6d 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -1 +1,9 @@
+pub struct Context<Data> {
+ pub data: Data,
+}
+impl<Data> Context<Data> {
+ pub fn new(data: Data) -> Self {
+ Self { data }
+ }
+} \ No newline at end of file