Macro flutter_rust_bridge::opaque_dyn
source · macro_rules! opaque_dyn { ($ex:expr) => { ... }; }
Expand description
Macro helper to instantiate an RustOpaque<dyn Trait>, as Rust does not
support custom DSTs on stable.
Example:
ⓘ
let opaque: RustOpaque<Box<dyn Debug>> = opaque_dyn!("foobar");