Struct sourcemap::Token [] [src]

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

Represents a token from a sourcemap

Methods

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

[src]

get the destination (minified) line number

[src]

get the destination (minified) column number

[src]

get the destination line and column

[src]

get the source line number

[src]

get the source column number

[src]

get the source line and column

[src]

Return the source ID of the token

[src]

get the source if it exists as string

[src]

Is there a source for this token?

[src]

get the name if it exists as string

[src]

returns true if a name exists, false otherwise

[src]

Return the name ID of the token

[src]

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

[src]

Get the underlying raw token

Trait Implementations

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

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

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for Token<'a>

impl<'a> !Sync for Token<'a>