macro_rules! with_ffi_arcs {
( [ $name:ident : dyn $ty:ident ], $body:block ) => { ... };
( [ $name:ident : $ty:ty ], $body:block ) => { ... };
( [ $name:ident : dyn $ty:ident, $($tail:tt)* ], $body:block ) => { ... };
( [ $name:ident : $ty:ty, $($tail:tt)* ], $body:block ) => { ... };
}
Expand description
Wrap up the management of Arc
s that go across the FFI boundary.
Trait objects must be wrapped in two Arc
s in order to yield a thin pointer.