Print arrays and maps with to_debug.
This commit is contained in:
@@ -61,7 +61,7 @@ mod MyEnumModule {
|
||||
}
|
||||
}
|
||||
// Printing
|
||||
#[rhai(global, name = "to_string", name = "print", name = "debug")]
|
||||
#[rhai(global, name = "to_string", name = "print", name = "to_debug", name = "debug")]
|
||||
pub fn to_string(a: &mut MyEnum) -> String {
|
||||
format!("{:?}", a))
|
||||
}
|
||||
|
Reference in New Issue
Block a user