[][src]Struct yarte_parser::Cursor

pub struct Cursor<'a> {
    pub rest: &'a str,
    pub off: u32,
}

Fields

rest: &'a stroff: u32

Implementations

impl<'a> Cursor<'a>[src]

pub fn adv(&self, amt: usize) -> Cursor<'a>[src]

pub fn find(&self, p: char) -> Option<usize>[src]

pub fn adv_find(&self, amt: usize, p: char) -> Option<usize>[src]

pub fn adv_starts_with(&self, amt: usize, s: &str) -> bool[src]

pub fn starts_with(&self, s: &str) -> bool[src]

pub fn is_empty(&self) -> bool[src]

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

pub fn chars(&self) -> Chars<'a>[src]

Trait Implementations

impl<'a> Clone for Cursor<'a>[src]

impl<'a> Copy for Cursor<'a>[src]

impl<'a> Debug for Cursor<'a>[src]

impl<'a> Eq for Cursor<'a>[src]

impl<'a> From<Cursor<'a>> for Span[src]

impl<'a> PartialEq<Cursor<'a>> for Cursor<'a>[src]

impl<'a> StructuralEq for Cursor<'a>[src]

impl<'a> StructuralPartialEq for Cursor<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Cursor<'a>[src]

impl<'a> Send for Cursor<'a>[src]

impl<'a> Sync for Cursor<'a>[src]

impl<'a> Unpin for Cursor<'a>[src]

impl<'a> UnwindSafe for Cursor<'a>[src]

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,