pistoncore-input 0.19.0

A structure for user input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#![feature(test)]

extern crate test;
extern crate input;

use test::Bencher;
use input::{Input, TextEvent};

#[bench]
fn bench_input_text(bencher: &mut Bencher) {
    let e = Input::Text("".to_string());
    bencher.iter(|| { let _: Option<Input> = TextEvent::from_text("hello", &e); });
}