gust_render/resources.rs
1//
2// Rust file | 2018
3// Author: Alexandre Fourcat
4// resources.rs
5// module:
6//! ressources trait and functions
7
8use std::cell::RefCell;
9use std::rc::Rc;
10use std::sync::{Arc, Mutex};
11
12pub type Resource<T> = Rc<T>;
13pub type MutResource<T> = Rc<RefCell<T>>;
14pub type ThreadResource<T> = Arc<T>;
15pub type MutThreadResource<T> = Arc<Mutex<T>>;