flutter_rust_bridge_codegen 2.0.0-dev.0

High-level memory-safe binding generator for Flutter/Dart <-> Rust
Documentation
1
2
3
4
5
6
7
use crate::codegen::ir::func::IrFuncMode;

// This is related to the specific `wire` implementation, thus put in `wire` module,
// instead of the `ir` module.
pub(crate) fn has_port_argument(mode: IrFuncMode) -> bool {
    !matches!(mode, IrFuncMode::Sync)
}