lgui-core 0.2.0

Platform-neutral runtime and UI primitives for LGUI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[test]
fn resources_are_typed_and_application_scoped() {
    let first = Resources::new();
    let second = Resources::new();
    first.provide(String::from("first"));
    second.provide(String::from("second"));

    assert_eq!(first.require::<String>().as_str(), "first");
    assert_eq!(second.require::<String>().as_str(), "second");
}