Struct sourcemap::Token [] [src]

pub struct Token<'a> { /* fields omitted */ }

Represents a token from a sourcemap

Methods

impl<'a> Token<'a>
[src]

get the destination (minified) line number

get the destination (minified) column number

get the destination line and column

get the source line number

get the source column number

get the source line and column

get the source if it exists as string

get the name if it exists as string

returns true if a name exists, false otherwise

Converts the token into a debug tuple in the form (source, src_line, src_col, name)

Get the underlying raw token

Trait Implementations

impl<'a> Debug for Token<'a>
[src]

Formats the value using the given formatter.

impl<'a> Display for Token<'a>
[src]

Formats the value using the given formatter.