Better scope printout.
This commit is contained in:
parent
a4b674d015
commit
68493416f1
@ -114,15 +114,19 @@ fn main() {
|
|||||||
}
|
}
|
||||||
"exit" | "quit" => break, // quit
|
"exit" | "quit" => break, // quit
|
||||||
"scope" => {
|
"scope" => {
|
||||||
scope.iter_raw().enumerate().for_each(|(i, (name, value))| {
|
scope
|
||||||
println!(
|
.iter_raw()
|
||||||
"[{}] {}{} = {:?}",
|
.enumerate()
|
||||||
i + 1,
|
.for_each(|(i, (name, constant, value))| {
|
||||||
name,
|
println!(
|
||||||
if value.is_shared() { " (shared)" } else { "" },
|
"[{}] {}{}{} = {:?}",
|
||||||
*value.read_lock::<Dynamic>().unwrap(),
|
i + 1,
|
||||||
)
|
if constant { "const " } else { "" },
|
||||||
});
|
name,
|
||||||
|
if value.is_shared() { " (shared)" } else { "" },
|
||||||
|
*value.read_lock::<Dynamic>().unwrap(),
|
||||||
|
)
|
||||||
|
});
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
"astu" => {
|
"astu" => {
|
||||||
|
Loading…
Reference in New Issue
Block a user