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

Return the source ID of the token

get the source if it exists as string

Is there a source for this token?

get the name if it exists as string

returns true if a name exists, false otherwise

Return the name ID of the token

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> PartialEq for Token<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

This method returns an Ordering between self and other. Read more

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.