samedi 11 août 2018

How do I print both an expression and its value in Rust?

Is there a way of doing this?

self.mega_ultra_field = 100500;
print_expr_and_value!(self.mega_ultra_field);

Output:

self.mega_ultra_field 100500





Aucun commentaire:

Enregistrer un commentaire