Struct jpar::Cursor[][src]

pub struct Cursor { /* fields omitted */ }

A specific position inside a Reader.

Implementations

impl Cursor[src]

pub fn byte_offset(&self) -> usize[src]

The position of the Cursor in bytes.

pub fn char_offset(&self) -> usize[src]

The position of the Cursor in characters.

pub fn line(&self) -> usize[src]

The line number in which the Cursor is placed. It starts at line 1.

pub fn column(&self) -> usize[src]

The column number in which the Cursor is placed. It starts at column 1.

Trait Implementations

impl Clone for Cursor[src]

impl Debug for Cursor[src]

impl Eq for Cursor[src]

impl PartialEq<Cursor> for Cursor[src]

impl StructuralEq for Cursor[src]

impl StructuralPartialEq for Cursor[src]

Auto Trait Implementations

impl RefUnwindSafe for Cursor

impl Send for Cursor

impl Sync for Cursor

impl Unpin for Cursor

impl UnwindSafe for Cursor

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.