Function simics::api::base::conf_object::copy_class

source ·
pub fn copy_class<S>(
    name: S,
    src_cls: *mut ConfClass,
    desc: S,
) -> Result<*mut ConfClass>
where S: AsRef<str>,
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 class
  • src_cls - The class to make a copy of
  • desc - The description string of the new class

§Return Value

The new copied class

§Context

Global Context