Does Rust have something equivalent to R’s str()?
In R
, a scripting/interpreted language, we have str(some_object)
which gives a high level summary or overview of the nature of some_object
in the workspace, including a small sample of entries stored within. This is very helpful in understanding the object and what one can do with it, access its inner parts and so forth. Here’s an example: