pub struct EventContext {
pub frame_id: u64,
pub byte_offset: usize,
pub line: usize,
pub column: usize,
}Expand description
Context where the event occurred.
Fields§
§frame_id: u64Current frame ID (0 if no frame active).
byte_offset: usizeByte offset in the input stream.
line: usizeLine number in the output (for debugging).
column: usizeColumn in the output.
Trait Implementations§
Source§impl Clone for EventContext
impl Clone for EventContext
Source§fn clone(&self) -> EventContext
fn clone(&self) -> EventContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventContext
impl Debug for EventContext
Source§impl Default for EventContext
impl Default for EventContext
Source§fn default() -> EventContext
fn default() -> EventContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventContext
impl RefUnwindSafe for EventContext
impl Send for EventContext
impl Sync for EventContext
impl Unpin for EventContext
impl UnsafeUnpin for EventContext
impl UnwindSafe for EventContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more