diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-08-10 02:33:11 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-08-10 02:33:11 +0200 |
| commit | 90042cc32f95286692755451aabdc928c315e2ce (patch) | |
| tree | 83996408080704fcf733c58df034a3754cba9595 /src/context.rs | |
| parent | 98822553549d8772a55f5444ab3ead4b6a1e69d7 (diff) | |
Add context
Diffstat (limited to 'src/context.rs')
| -rw-r--r-- | src/context.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs new file mode 100644 index 0000000..47661d0 --- /dev/null +++ b/src/context.rs @@ -0,0 +1,6 @@ +use std::any::Any; + +pub trait Context { + fn get(&self, key: &str) -> Option<&dyn Any>; + fn set(&mut self, key: &str, value: &dyn Any); +} |
