[][src]Struct gobble::reader::Pos

pub struct Pos<O> {
    pub line: usize,
    pub col: usize,
    pub start: usize,
    pub fin: Option<usize>,
    pub ob: O,
}

Fields

line: usizecol: usizestart: usizefin: Option<usize>ob: O

Implementations

impl<O> Pos<O>[src]

pub fn on_str<'a>(&self, s: &'a str) -> &'a str[src]

This version assumes that this is the string it came from

Trait Implementations

impl<O: Clone> Clone for Pos<O>[src]

impl<O: Debug> Debug for Pos<O>[src]

impl<O: PartialEq> PartialEq<Pos<O>> for Pos<O>[src]

impl<O> StructuralPartialEq for Pos<O>[src]

Auto Trait Implementations

impl<O> RefUnwindSafe for Pos<O> where
    O: RefUnwindSafe

impl<O> Send for Pos<O> where
    O: Send

impl<O> Sync for Pos<O> where
    O: Sync

impl<O> Unpin for Pos<O> where
    O: Unpin

impl<O> UnwindSafe for Pos<O> where
    O: UnwindSafe

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.