rust_swig 0.5.1

Tool for connecting libraries written in Rust with other languages
Documentation
1
2
3
4
5
foreign_callback!(callback SomeObserver {
    self_type SomeTrait;
    onStateChanged1 = SomeTrait::on_state_changed1(&self, _: i32, _: bool);
    onStateChanged2 = SomeTrait::on_state_changed2(&self, _: bool, _: f64) -> bool;
});