#[non_exhaustive]pub struct LineEvent<'a> {
pub module: &'a str,
pub unit: &'a str,
pub kind: UnitKind,
pub line: u32,
pub depth: usize,
}Expand description
A line is about to run (spec/host/09-debug.md, 9.2).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.module: &'a strThe module that has the line.
unit: &'a strThe name of the label or fn that has the line (the functions the compiler makes have names starting with <).
kind: UnitKindWhether unit is a label or a fn.
line: u32The line number, counted from 1.
depth: usizeThe nesting of calls (9.3).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for LineEvent<'a>
impl<'a> Freeze for LineEvent<'a>
impl<'a> Move for LineEvent<'a>
impl<'a> RefUnwindSafe for LineEvent<'a>
impl<'a> Send for LineEvent<'a>
impl<'a> Sync for LineEvent<'a>
impl<'a> Unpin for LineEvent<'a>
impl<'a> UnsafeUnpin for LineEvent<'a>
impl<'a> UnwindSafe for LineEvent<'a>
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