rust/proc-macro2/probe/proc_macro_span_location.rs

Source file repositories/reference/linux-study-clean/rust/proc-macro2/probe/proc_macro_span_location.rs

File Facts

System
Linux kernel
Corpus path
rust/proc-macro2/probe/proc_macro_span_location.rs
Extension
.rs
Size
371 bytes
Lines
24
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: implementation source
Status
source implementation candidate

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: Apache-2.0 OR MIT

// The subset of Span's API stabilized in Rust 1.88.

extern crate proc_macro;

use proc_macro::Span;

pub fn start(this: &Span) -> Span {
    this.start()
}

pub fn end(this: &Span) -> Span {
    this.end()
}

pub fn line(this: &Span) -> usize {
    this.line()
}

pub fn column(this: &Span) -> usize {
    this.column()
}

Annotation

Implementation Notes