gust-render 0.2.0

Gust is a simple 2D graphical library inspired by SFML.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
//  Rust file | 2018
//  Author: Alexandre Fourcat
//  resources.rs
//  module:
//! ressources trait and functions

use std::cell::RefCell;
use std::rc::Rc;
use std::sync::{Arc, Mutex};

pub type Resource<T> = Rc<T>;
pub type MutResource<T> = Rc<RefCell<T>>;
pub type ThreadResource<T> = Arc<T>;
pub type MutThreadResource<T> = Arc<Mutex<T>>;