Function simics::api::base::attr_value::attr_object
source · pub fn attr_object(attr: &AttrValue) -> Result<*mut ConfObject>
Expand description
Get an AttrValue
as a ConfObject
pointer
§Arguments
attr
- TheAttrValue
to attempt to get as a*mut ConfObject
§Return Value
The contained object value if the AttrValue
is the correct type, or an
error otherwise.
§Notes
Conversion via TryInto
should be preferred. For example:
ⓘ
let x: *mut ConfObject = a.try_into()?;
§Context
All Contexts