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<()>
where E: Into<AttrValue>,
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 in
  • index - The index in the list to set
  • elem - The value to set the item in the list at index index to

§Context

Cell Context