Struct proc_macro::bridge::client::Span
source · pub(crate) struct Span {
handle: NonZeroU32,
_marker: PhantomData<*mut ()>,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Fields§
§handle: NonZeroU32
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)_marker: PhantomData<*mut ()>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Implementations§
source§impl Span
impl Span
pub(crate) fn def_site() -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn call_site() -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn mixed_site() -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)source§impl Span
impl Span
pub(crate) fn debug(self: Span) -> String
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn source_file(self: Span) -> SourceFile
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn parent(self: Span) -> Option<Span>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn source(self: Span) -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn byte_range(self: Span) -> Range<usize>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn start(self: Span) -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn end(self: Span) -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn line(self: Span) -> usize
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn column(self: Span) -> usize
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn join(self: Span, other: Span) -> Option<Span>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn subspan( self: Span, start: Bound<usize>, end: Bound<usize> ) -> Option<Span>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn resolved_at(self: Span, at: Span) -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn source_text(self: Span) -> Option<String>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn save_span(self: Span) -> usize
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn recover_proc_macro_span(id: usize) -> Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
source§impl PartialEq<Span> for Span
impl PartialEq<Span> for Span
impl Copy for Span
impl StructuralEq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl RefUnwindSafe for Span
impl !Send for Span
impl !Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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