Skip to main content

read_ptr_trait_object

Macro read_ptr_trait_object 

Source
macro_rules! read_ptr_trait_object {
    ($context:expr, $ref_mode:expr, $read_type_info:expr, $type_info:expr, $pointer_type:ty, $trait_name:ident, $constructor_expr:expr, $get_ref:ident, $store_ref:ident, $($impl_type:ty),+) => { ... };
}
Expand description

Macro to read smart pointer trait objects (Rc<dyn Trait>, Arc<dyn Trait>) This macro handles ref tracking and directly constructs the trait object from concrete types