Function simics::api::base::conf_object::set_class_data

source ·
pub fn set_class_data<T>(cls: *mut ConfClass, data: T) -> Result<()>
Expand description

Set extra data for the specified class. This is particularly useful if the same class methods are used for multiple distinct classes, for instance for generated classes. The class data can be fetched at any time during the object initialisation, using get_class_data.

§Arguments

  • cls - The class to set extra data for
  • data - Extra data to store

§Context

Global Context