Macro from_vbox

Source
macro_rules! from_vbox {
    ($t: ty, $v: expr) => { ... };
}
Expand description

Consume VBox and reconstruct the original trait object: Box<dyn Trait>.

It retrieve data pointer from VBox.data and the vtable pointer from VBox.vtable. Then it puts them together to reconstruct the fat pointer for the trait object.

See: crate doc