mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-03-14 18:55:37 +00:00
add deref_at macro util
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
5b8464252c
commit
afcd0bfeef
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,13 @@ macro_rules! ref_at {
|
|||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! deref_at {
|
||||
($idx:tt) => {
|
||||
|t| *t.$idx
|
||||
};
|
||||
}
|
||||
|
||||
/// Functor for equality i.e. .is_some_and(is_equal!(2))
|
||||
#[macro_export]
|
||||
macro_rules! is_equal_to {
|
||||
|
|
Loading…
Add table
Reference in a new issue