Crate flutter_rust_bridge

Source
Expand description

Modules§

Macros§

  • Macro helper to instantiate an RustOpaque<dyn Trait>, as Rust does not support custom DSTs on stable.
  • On WASM, JsValues cannot be shared between scopes but instead can be “transferred”. Rust however is not aware of transferables and therefore cannot capture these values. This macro wraps a closure and returns a TransferClosure on WASM platforms which will capture these special values, or a normal FnOnce on other platforms. Note that the parameter names must match available variables/bindings from the outer scope.

Structs§

Traits§

Functions§

Type Aliases§

Attribute Macros§

  • Attribute to guide code generation.