Function simics::api::base::attr_value::attr_list_set_item
source · pub fn attr_list_set_item<E>(
attr: &mut AttrValue,
index: u32,
elem: E,
) -> Result<()>
Expand description
Set the element numbered index of the list attr to elem. The previous value at that position is freed. The ownership for elem is transferred from the caller to attr.
§Arguments
attr
- The attribute list to set an item inindex
- The index in the list to setelem
- The value to set the item in the list at indexindex
to
§Context
Cell Context