Struct rio_api::parser::LineBytePosition[][src]

pub struct LineBytePosition { /* fields omitted */ }

Implementations

impl LineBytePosition[src]

pub fn new(line_number: u64, byte_number: u64) -> Self[src]

Creates a new position where line_number and byte_number are both starting from 1

pub fn line_number(&self) -> u64[src]

The line number where the error occurred starting from 0

pub fn byte_number(&self) -> u64[src]

The byte number where the error occurred starting from 0

Trait Implementations

impl Clone for LineBytePosition[src]

impl Copy for LineBytePosition[src]

impl Debug for LineBytePosition[src]

impl Eq for LineBytePosition[src]

impl Hash for LineBytePosition[src]

impl PartialEq<LineBytePosition> for LineBytePosition[src]

impl StructuralEq for LineBytePosition[src]

impl StructuralPartialEq for LineBytePosition[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.