Struct glsl_lang::parse::LexerPosition[][src]

pub struct LexerPosition {
    pub source_id: usize,
    pub offset: usize,
}

A position in the lexer’s input

Fields

source_id: usize

Source id

offset: usize

Raw byte offset

Implementations

impl LexerPosition[src]

pub fn new(source_id: usize, offset: usize) -> LexerPosition[src]

Create a new LexerPosition

Parameters

  • source_id: source id
  • offset: raw byte offset in the input

Trait Implementations

impl Clone for LexerPosition[src]

impl Copy for LexerPosition[src]

impl Debug for LexerPosition[src]

impl Default for LexerPosition[src]

impl Display for LexerPosition[src]

impl Eq for LexerPosition[src]

impl Hash for LexerPosition[src]

impl Ord for LexerPosition[src]

impl PartialEq<LexerPosition> for LexerPosition[src]

impl PartialOrd<LexerPosition> for LexerPosition[src]

impl StructuralEq for LexerPosition[src]

impl StructuralPartialEq for LexerPosition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

type Err = Infallible

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.