Function simics::api::base::attr_value::make_attr_data

source ·
pub fn make_attr_data<T>(data: &T) -> Result<AttrValue>
where T: Clone,
Expand description

Create a new data AttrValue

§Arguments

  • data - A reference to an object to copy into a new AttrValue

§Return Value

An AttrValue storing a raw pointer to a copy of the provided data. The data is owned by the AttrValue

§Context

Cell Context