pub trait SpanTransformer {
type Table;
type Span: Copy;
// Required methods
fn token_id_of(table: &mut Self::Table, s: Self::Span) -> SpanId;
fn span_for_token_id(table: &Self::Table, id: SpanId) -> Self::Span;
}
Required Associated Types§
Required Methods§
fn token_id_of(table: &mut Self::Table, s: Self::Span) -> SpanId
fn span_for_token_id(table: &Self::Table, id: SpanId) -> Self::Span
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.