Better scope printout.
@@ -114,10 +114,14 @@ fn main() {
}
"exit" | "quit" => break, // quit
"scope" => {
- scope.iter_raw().enumerate().for_each(|(i, (name, value))| {
+ scope
+ .iter_raw()
+ .enumerate()
+ .for_each(|(i, (name, constant, value))| {
println!(
- "[{}] {}{} = {:?}",
+ "[{}] {}{}{} = {:?}",
i + 1,
+ if constant { "const " } else { "" },
name,
if value.is_shared() { " (shared)" } else { "" },
*value.read_lock::<Dynamic>().unwrap(),
