Attribute Macro overrides

#[overrides]
Expand description

Part of the kanzi::class procedural macro suite.

Marks traits used to override default implementations or to provide implementations for virtual methods.

In this example it is specified for IDataSource:

#[kanzi::class]
#[metaclass(base = kanzi::DataSource)]
struct RustDataSource {
    root: kanzi::DataObject,
}

#[kanzi::overrides]
impl kanzi::IDataSource for RustDataSource {
    fn get_data(&mut self) -> Option<kanzi::Weak<kanzi::DataObject>> {
        Some(kanzi::Weak::downgrade_ref(&self.root))
    }
}