#[derive(Debug)]
#[allow(dead_code)]
pub(crate) struct ZeroSizedType;
impl PartialEq for ZeroSizedType {
fn eq(&self, _: &Self) -> bool {
true
}
}
#[allow(unused_macros)]
macro_rules! repeat {
($ele:expr, $times:expr) => {{
for _ in 0..$times {
let _ = $ele;
}
}};
}
#[allow(unused_imports)]
pub(crate) use repeat;
#[derive(Debug)]
#[allow(dead_code)]
pub(crate) struct DropCounter<'a> {
pub(crate) counter: &'a core::cell::Cell<i32>,
}
impl Drop for DropCounter<'_> {
fn drop(&mut self) {
self.counter.set(self.counter.get() + 1);
}
}