Trait DynDynBase

Source
pub unsafe trait DynDynBase {
    // Required method
    fn get_dyn_dyn_table(&self) -> DynDynTable;
}
Expand description

A type that can be dynamically downcast to other traits using the dyn_dyn_cast! macro.

This trait should not be manually implemented by user code. Instead, this trait should be implemented by using the #[dyn_dyn_base] attribute on the trait in question. The exact shape of this trait is subject to change at any time, so it generally shouldn’t be relied upon in external code except as a trait bound.

§Safety

The result of calling DynDynBase::get_dyn_dyn_table on an object through a given base must never change for the lifetime of that object, even if the object itself is mutated.

Required Methods§

Source

fn get_dyn_dyn_table(&self) -> DynDynTable

Gets the DynDynTable for this object, for traits exposed via this base trait.

In user code, it is generally preferred to use the implementation of GetDynDynTable for references rather than calling this method directly to avoid potential future breakage.

Implementors§