Add Subs.dbg

This commit is contained in:
Ayaz Hafiz 2022-11-15 09:54:16 -06:00
parent 3c968b581d
commit 9a7402f40b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -2146,6 +2146,11 @@ impl Subs {
}
}
}
#[cfg(debug_assertions)]
pub fn dbg(&self, var: Variable) -> impl std::fmt::Debug + '_ {
SubsFmtContent(self.get_content_without_compacting(var), self)
}
}
#[inline(always)]