1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub use ::tuple::Tuple; pub use ::emotion::Emotion; pub use ::position::Posture; pub use ::sprite::texel::part::Part; pub fn init<T>(e: Option<T>, v: Vec<T>) -> Vec<T> { match e { None => v, Some(e) => { let mut v = v; v.push(e); v } } }