pub fn push_event(event: GroupEvent) {
    unsafe {
        if let Some(ref mut queue) = EVENT_QUEUE {
            if !queue.contains(&event) {
                queue.push_back(event);
            }
        } else {
            let mut queue: VecDeque<GroupEvent> = VecDeque::with_capacity(4);
            queue.push_back(event);

            EVENT_QUEUE = Some(queue);
        }
    }
}
/// Push a GroupEvent to the Event Queue
Push a GroupEvent to the Event Queue
Push a GroupEvent to the Event Queue
pub fn push_event(event: GroupEvent) {
    unsafe {
        if let Some(ref mut queue) = EVENT_QUEUE {
            if !queue.contains(&event) {
                queue.push_back(event);
            }
        } else {
            let mut queue: VecDeque<GroupEvent> = VecDeque::with_capacity(4);
            queue.push_back(event);
            EVENT_QUEUE = Some(queue);
        }
    }
}
pub fn push_event ( event : GroupEvent ) { unsafe { if let Some ( ref mut queue ) = EVENT_QUEUE { if ! queue . contains ( & event ) { queue . push_back ( event ) ; } } else { let mut queue : VecDeque < GroupEvent > = VecDeque :: with_capacity ( 4 ) ; queue . push_back ( event ) ; EVENT_QUEUE = Some ( queue ) ; } } }
Push a GroupEvent to the Event Queue
Push a GroupEvent to the Event Queue
event
GroupEvent
event
GroupEvent