pub struct TraceExportProgrammaticOutput {
pub output: TraceExportTargetOutput,
}Expand description
Typed programmatic export-trace output before JSON serialization. Carries either an export trace or (fallback) a class / enum / store member trace.
Fields§
§output: TraceExportTargetOutputTyped export-or-member trace produced by the run.
Implementations§
Source§impl TraceExportProgrammaticOutput
impl TraceExportProgrammaticOutput
Sourcepub const fn trace(&self) -> &TraceExportTargetOutput
pub const fn trace(&self) -> &TraceExportTargetOutput
Typed export-or-member trace retained by this run.
Sourcepub const fn as_export(&self) -> Option<&TraceExportOutput>
pub const fn as_export(&self) -> Option<&TraceExportOutput>
The export trace, when the target resolved to a top-level export.
Sourcepub const fn as_member(&self) -> Option<&TraceClassMemberOutput>
pub const fn as_member(&self) -> Option<&TraceClassMemberOutput>
The member trace, when the target resolved to a class / enum / store
member (the trace_export fallback, issue #1744).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceExportProgrammaticOutput
impl RefUnwindSafe for TraceExportProgrammaticOutput
impl Send for TraceExportProgrammaticOutput
impl Sync for TraceExportProgrammaticOutput
impl Unpin for TraceExportProgrammaticOutput
impl UnsafeUnpin for TraceExportProgrammaticOutput
impl UnwindSafe for TraceExportProgrammaticOutput
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more