This commit is contained in:
Laurențiu Nicola 2023-02-01 19:06:09 +02:00
parent 7acc434f46
commit ff340f9c21
5 changed files with 13 additions and 17 deletions

View file

@ -26,7 +26,7 @@ pub use countme::Count;
thread_local!(static IN_SCOPE: RefCell<bool> = RefCell::new(false));
/// Allows to check if the current code is withing some dynamic scope, can be
/// Allows to check if the current code is within some dynamic scope, can be
/// useful during debugging to figure out why a function is called.
pub struct Scope {
prev: bool,