Function simics::api::base::attr_value::attr_dict_size

source ·
pub fn attr_dict_size(attr: &AttrValue) -> Result<u32>
Expand description

Get the size of an AttrValue dict, in number of items or an error if the AttrValue is not a dict

§Arguments

  • attr - The AttrValue to get the dict size of

§Return Value

The size of the dict, if the AttrValue is a dict, or an error if it is not

§Context

All Contexts