Struct rustdoc::clean::types::Span [−][src]
pub(crate) struct Span(Span);
Expand description
Small wrapper around rustc_span::Span
that adds helper methods
and enforces calling rustc_span::Span::source_callsite()
.
Tuple Fields
0: Span
Implementations
Wraps a rustc_span::Span
. In case this span is the result of a macro expansion, the
span will be updated to point to the macro invocation instead of the macro definition.
(See rust-lang/rust#39726)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes