Function simics::api::base::conf_object::_copy_class
source · fn _copy_class<S>(
name: S,
src_cls: *mut ConfClass,
desc: S,
) -> Result<*mut ConfClass>
Expand description
This function creates a copy of the class src_class named name. Additional attributes and interfaces can be registered on the newly created class.
The new class is described by desc
§Arguments
name
- The name of the new classsrc_cls
- The class to make a copy ofdesc
- The description string of the new class
§Return Value
The new copied class
§Context
Global Context