#[non_exhaustive]pub struct DiagnosticFrame {
pub source: Arc<str>,
pub line: u32,
pub function: Option<String>,
}Expand description
A script call frame captured before execution state is discarded.
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.source: Arc<str>The source label recorded for this call site; not necessarily a filesystem path.
line: u32The one-based source line of the call site.
function: Option<String>The function’s debug name, when available. Long names may be truncated.
Trait Implementations§
Source§impl Clone for DiagnosticFrame
impl Clone for DiagnosticFrame
Source§fn clone(&self) -> DiagnosticFrame
fn clone(&self) -> DiagnosticFrame
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 DiagnosticFrame
impl Debug for DiagnosticFrame
Source§impl PartialEq for DiagnosticFrame
impl PartialEq for DiagnosticFrame
impl Eq for DiagnosticFrame
impl StructuralPartialEq for DiagnosticFrame
Auto Trait Implementations§
impl Freeze for DiagnosticFrame
impl RefUnwindSafe for DiagnosticFrame
impl Send for DiagnosticFrame
impl Sync for DiagnosticFrame
impl Unpin for DiagnosticFrame
impl UnsafeUnpin for DiagnosticFrame
impl UnwindSafe for DiagnosticFrame
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