Derive Macro simics::FromConfObject

source ·
#[derive(FromConfObject)]
{
    // Attributes available to this derive:
    #[conf_object]
}
Expand description

Derive macro for implementing conversion from raw ConfObject pointers. This macro implements the FromConfObject trait for the annotated type.

§Arguments

At the item level (i.e. on the struct deriving this attribute), the following attributes are supported:

  • #[conf_object(skip_from)] - Skip also implementing From<*_ ConfObject> which is the default behavior.