This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
advent-of-code-2022/aoc-shared/src/lib.rs

23 lines
522 B
Rust

pub mod grid;
pub use grid::*;
#[macro_export]
macro_rules! deref {
($($struct: ty, $target: ty),* ) => {
$(
impl ::core::ops::Deref for $struct {
type Target = $target;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl ::core::ops::DerefMut for $struct {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
)*
}
}