[][src]Function rosy::gc::stat

pub fn stat(key: impl GcInfoKey) -> Result<usize>

Returns the status information for key, or an exception if one is raised.

Examples

The number of available heap slots can be retrieved as such:

let slots = rosy::gc::stat("heap_available_slots").unwrap();
assert_ne!(slots, 0);