binder 0.0.2

A simple, zero-dependency property-binding framework.
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented1 out of 6 items with examples
  • Size
  • Source code size: 11.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • trashbyte/binder
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • trashbyte

Binder

Crates.io Docs.rs MIT licensed build Coverage doc coverage

A simple, zero-dependency property-binding framework. It was originally designed to use imgui-rs without drowning in mutable references to everything and constantly fighting with the borrow checker. It uses internal mutability and runtime borrow checking to avoid lifetime issues. Designed to be fully memory- and thread-safe, although there might be bugs since it's brand-new.

Usage

pub struct PropHaver {
    pub prop: binder::Property<f32>
}
fn use_prop(p: &PropHaver, ui: &imgui::Ui) {
    ui.slider("wow what a cool slider", &mut p.prop.bind());
}

Stability

This thing is brand-new, so expect bugs and/or API-breaking changes in the near future.

License

Binder is licensed under the MIT License.