rusteval 0.2.0

Make your application's structs and functions interactive
Documentation
#![no_implicit_prelude]
use ::rusteval::{Function, Interactive, InteractiveRoot, Methods, PartialDebug};


struct NoDebug;

#[derive(Interactive, PartialDebug)]
struct ChildStruct {
    last_sum: f32,
    no_debug: NoDebug,
}

#[Methods]
impl ChildStruct {
    fn yes(&mut self, _a: f32, _b: &str, _c: &mut str) -> bool {
        true
    }
}

#[derive(InteractiveRoot)]
struct Root {
    child: ChildStruct,
}

#[Function]
fn split_str_at(s: &str, mid: usize) -> (&str, &str) {
    s.split_at(mid)
}