luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::enums::event_type::EventType;
use crate::records::thread_context::ThreadContext;

impl ThreadContext {
    pub fn event_enter_u16_u32(&mut self, token: u16, microsec: u32) {
        self.events.push(crate::records::event::Event {
            r#type: EventType::Enter,
            token,
            data: crate::records::event::EventData { microsec },
        });
    }
}