Struct ra_ap_mbe::TokenMap [−][src]
pub struct TokenMap { /* fields omitted */ }
Expand description
Maps tt::TokenId
to the relative range of the original token.
Implementations
pub fn ranges_by_token(
&self,
token_id: TokenId,
kind: SyntaxKind
) -> impl Iterator<Item = TextRange> + '_
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenMap
impl UnwindSafe for TokenMap
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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