Function simics::api::base::attr_value::attr_list_item
source · pub fn attr_list_item(attr: &AttrValue, index: usize) -> Result<AttrValue>
Expand description
Retrieve a list item from an attr list without converting the item to a specific type.
Unlike a simple access in the C API, the item is cloned and the caller takes ownership of the new item. The old item’s ownership is not changed, and it is not freed.
§Arguments
attr
- The listAttrValue
to retrieve an item fromindex
- The index in the list to retrieve
§Return Value
§Context
All Contexts