Struct sourcemap::RawToken [] [src]

pub struct RawToken {
    pub dst_line: u32,
    pub dst_col: u32,
    pub src_line: u32,
    pub src_col: u32,
    pub src_id: u32,
    pub name_id: u32,
}

Represents a raw token

Raw tokens are used internally to represent the sourcemap in a memory efficient way. If you construct sourcemaps yourself then you need to create these objects, otherwise they are invisible to you as a user.

Fields

dst_line: u32

the destination (minified) line number

dst_col: u32

the destination (minified) column number

src_line: u32

the source line number

src_col: u32

the source line column

src_id: u32

source identifier

name_id: u32

name identifier (!0 in case there is no associated name)

Trait Implementations

impl Clone for RawToken
[src]

fn clone(&self) -> RawToken

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for RawToken
[src]

impl PartialEq for RawToken
[src]

fn eq(&self, __arg_0: &RawToken) -> bool

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

fn ne(&self, __arg_0: &RawToken) -> bool

This method tests for !=.