flutter_rust_bridge 2.12.0

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub use allo_isolate::{IntoDart, IntoDartExceptPrimitive};
pub type Channel = allo_isolate::Isolate;
pub use allo_isolate::ZeroCopyBuffer;

/// A channel that implements `Send`
pub type SendableChannelHandle = Channel;

pub fn channel_to_handle(channel: &Channel) -> SendableChannelHandle {
    channel.to_owned()
}

pub fn handle_to_channel(handle: &SendableChannelHandle) -> Channel {
    handle.to_owned()
}